@jswork/next-collection

1.0.1 • Public • Published

next-collection

Collection for next.

version license size download

installation

npm install -S @jswork/next-collection

apis

api params description
union - Union collection.
intersect - Collection intersection.
diff - Collection difference.
minus - Collection except other(minus).

usage

import NxCollection from '@jswork/next-collection';

const arr1 = [1, 2, 3]
const arr2 = [1, 5, 2, 6]

const col1 = nx.Collection.minus(arr1, arr2);
const col2 = nx.Collection.minus(arr2, arr1);

// result:
// [3]
// [5, 6]

license

Code released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @jswork/next-collection

Homepage

js.work

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

6.61 kB

Total Files

5

Last publish

Collaborators

  • afeiship