package
Minimalistic JavaScript library for working with collections of data.
npm install collection.jsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 1 packages.
763.7 kB
Includes dependencies.
Collection — minimalistic JavaScript library for working with collections of data.
// Iterate over the elements in reverse order starting with the 5th
$C(document.querySelectorAll('.foo')).forEach((el) => {
...
}, {
reverse: true,
startIndex: 5
});
// Return an array of all the even elements of the original array
$C([1, 2, 3, 4]).get((el) => el % 2 === 0);
// Create a new object based on the source,
// {a: 2, b: 4}
$C({a: 4, b: 16}).map(Math.sqrt);
// Iterate very large object in the lightweight thread
await
The MIT License.
bonkalol
bonkalol@list.ru