Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function updateMapIf(field, value, update) { return u.map(u.if(u.is(field, value), update)); }
Easily update nested frozen objects and arrays in a declarative and immutable manner.