UNPKG

rambdax

Version:

Extended version of Rambda - a lightweight, faster alternative to Ramda

14 lines (11 loc) 220 B
import { always } from './always' import { curry } from './curry' import { over } from './over' function setFn( lens, replacer, x ){ return over( lens, always(replacer), x ) } export const set = curry(setFn)