1.0.0 • Published 5 years ago
immutadot-lodash v1.0.0
immutad●t-lodash
immutadot-lodash is an extension to immutad●t, adding functions based on lodash.
More information on immutad●t is available on the repository's main page.
Installation
immutad●t-lodash is available on npm repository.
using yarn:
$ yarn add immutadot lodash immutadot-lodash
using npm:
$ npm install immutadot lodash immutadot-lodash
Usage
ES modules:
import { mapValues } from 'immutadot-lodash'
CommonJS:
const { mapValues } = require('immutadot-lodash')
Example
Use lodash's mapValues
on a nested object:
const obj = {
nested: {
object: {
a: 1,
b: 2,
c: 3,
},
},
}
const newObj = mapValues(obj, 'nested.object', v => v * v)
// =>
// {
// nested: {
// object: {
// a: 1,
// b: 4,
// c: 9,
// },
// },
// }
Documentation
Latest API documentation is available here.
License
immutad●t-lodash is MIT licensed.
2.0.0-alpha.1
5 years ago
1.0.0
6 years ago
1.0.0-rc.7
6 years ago
1.0.0-rc.6
6 years ago
1.0.0-rc.5
6 years ago
1.0.0-rc.4
6 years ago
1.0.0-rc.3
6 years ago
1.0.0-rc.2
6 years ago
1.0.0-rc.1
6 years ago