Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 230 Bytes

README.md

File metadata and controls

7 lines (6 loc) · 230 Bytes
import { chunk } from "@ihaback/your-typescript-lib"
// Chunk an array into smaller arrays of a specified size
    const bigArray = Array.from({ length: 100 }, (v, i) => i);

    const chunkedArray = chunk(bigArray, 25);