Split an array into multiple sub array "chunks" based on the given options.
import {chunkArray} from '@augment-vir/common';const result = chunkArray( [ 'a', 'b', 'c', ], { chunkSize: 2, },);// result is `[['a', 'b'], ['c']]` Copy
import {chunkArray} from '@augment-vir/common';const result = chunkArray( [ 'a', 'b', 'c', ], { chunkSize: 2, },);// result is `[['a', 'b'], ['c']]`
Split an array into multiple sub array "chunks" based on the given options.