Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addFlake: newFlake => edit(u({flakes: u.if(lengthIsLessThan(21),concat(newFlake)),
droppedCount: increment })),
removeFlake: flakeId => edit(u({flakes: u.reject(flakeHasId(flakeId)) })),
addFlake: newFlake => edit(u({flakes: u.if(lengthIsLessThan(21),concat(newFlake)),
droppedCount: increment })),
removeFlake: flakeId => edit(u({flakes: u.reject(flakeHasId(flakeId)) })),
(tags, ui, filters) => {
return {
ui,
tags: tags.map(u(
u.if(
pipe(prop('id'), contains(__, filters)),
assoc('isSelected', true)
)
))
};
}
),