@jswork/next-partition

1.0.0 • Public • Published

next-partition

Creates an array of elements split into two groups.

version license size download

installation

npm install -S @jswork/next-partition

usage

import '@jswork/next-partition';

const rs = nx.partition([1, 2, 3], function(_, n) {
  return n % 2;
});

//result:
[
  [1,3],
  [2]
]

license

Code released under the MIT license.

Dependencies (0)

    Dev Dependencies (16)

    Package Sidebar

    Install

    npm i @jswork/next-partition

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.69 kB

    Total Files

    5

    Last publish

    Collaborators

    • afeiship