Input to arrayify
The array input. Must be an array of T.
The filter function.
The input array to (chunk) slice
The max length of each sub-array
The array of input. Has to be either a readonly version or a instanceof T.
The max length of each sub array
The array inputted. Must be an array of T
The value to remove. Must be the same typeof T
The array inputted. Must be an array of T
The until function, same parameters that map returns. Must return a boolean.
The array inputted. Must be an array of T
The until function, same parameters that map returns. Must return a boolean.
Generated using TypeDoc, the 2/8/2021 at 8:46:57 AM
Convert an object to an array. Can be an instance of a class or anything really.
import { arrayIfy } from 'tyvn'; const data: Set = new Set();
data.add('hello');
data.add('world');
arrayIfy<Set, string>(data); // ['hello', 'world']