gato 0.0.1 copy "gato: ^0.0.1" to clipboard
gato: ^0.0.1 copied to clipboard

outdated

A dart utility library inspired by javascript lodash library.

Gato #

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}}
21
likes
0
points
152
downloads

Publisher

unverified uploader

Weekly Downloads

A dart utility library inspired by javascript lodash library.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on gato