tooly 0.2.0 copy "tooly: ^0.2.0" to clipboard
tooly: ^0.2.0 copied to clipboard

outdated

Tooly is a package in dart that contain utilities for working with lists, maps, sets and objects.

Tooly #

Tooly is a package in dart that contain utilities for working with lists, maps, sets and objects.

Method list #

Compact #

Create a list without null, false, 0 and '' from another list.

Tooly.compact([0, 77, '', 55, false]);
// [77, 55]

Concat #

Create a list that contain the initial list and additional list.

Tooly.concat([1, 2, 3], [4, 5, 6]);
// [1, 2, 3, 4, 5, 6]

Uniq #

Create a list no duplicate elements from another list.

Tooly.uniq([1, 1, 1, 5, 5, 8]);
// [1, 5, 8]

listToString #

Create a string from a list.

Tooly.listToString(['first', 'second', 'third']);
// first, second, third

Flatten #

Flattens list a single level deep.

Tooly.flatten([1, 2, [3, 4], ['a', 'b']]);
// [1, 2, 3, 4, a, b]

Much more under construction...

2
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Tooly is a package in dart that contain utilities for working with lists, maps, sets and objects.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on tooly