lodash_utility 0.0.1
lodash_utility: ^0.0.1 copied to clipboard

A dart utility library inspired by javascript lodash library.

Lodash_utility #

A dart utility library inspired by javascript lodash library.

Get #

Get value from a Map by path. Use dot notation in [path] to access nessted keys.

Map map = {'a': {'b': 1}};
var b = get(map, 'a.b');

Set #

Set value to a Map by path. Use dot notation in [path] to access nessted keys.

Map map = {'a': {'b': 1}};
map = set(map, 'a.b', 2);

Unset #

Unset a key from a Map by path. Use dot notation in [path] to access nessted keys

Map map = {'a': {'b': 1}, 'c': 2};
map = set(map, 'c'); // {'a': {'b': 1}}
1
likes
130
pub points
38%
popularity

A dart utility library inspired by javascript lodash library.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

mehdi.zarepoor@gmail.com

License

MIT (LICENSE)

More

Packages that depend on lodash_utility