1.0.10 • Published 4 years ago

array-grouper-twig v1.0.10

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

Array Grouper

Array Grouper splits a given array of numbers into N smaller arrays where the length of the array and N are both positive integers.

Installation

npm i array-grouper-twig

Usage

In order to use this array grouper, simply import the groupArrayElements method and call it as shown below.

import { groupArrayElements } from "array-grouper-twig";

var result = groupArrayElements([1, 2, 3, 4, 5], 3);
//result = [ [ 1, 2], [ 3, 4 ], [ 5 ] ]
1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago