Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
Icepick & references
node v5.12.0
version:
master
endpoint
share
tweet
const i = require('icepick'); const base = i.freeze({ foo: 'FOO', bar: { baz: 'BAZ' } });
merge
base === i.merge(base, {})
assoc
base === i.assoc(base, 'foo', 'FOO')
assign
base === i.assign(base, {})
assocIn
base === i.assocIn(base, [ 'foo' ], 'FOO')
updateIn
base === i.updateIn(base, [ 'foo' ], () => 'FOO')
Loading…
no comments
sign in
to comment