Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 233 Bytes

README.md

File metadata and controls

15 lines (8 loc) · 233 Bytes

assocPath

shallow clone of object and assigns specified value to path

api

assocPath(path, value, obj)

example

const obj = assocPath(['c','f'], 2, { a: 1, b: 3}) #> {a: 1, b: 3, c: { f: 2}}

README