UNPKG

imma

Version:

A collection of functions for dealing with native arrays and objects immutably

7 lines (5 loc) 195 B
'use strict' const setIn = require('./setIn') const getIn = require('./getIn') const updateIn = module.exports = (iterable, keys, fn) => setIn(iterable, keys, fn(getIn(iterable, keys)))