Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS
► isArray(obj: any
): boolean
Defined in isArray.ts:12
Is the given object an Array
isArray([1,2,3]); // -> true
isArray('string'); // -> false
Parameters:
Param | Type | Description |
---|---|---|
obj | any |
Object to test |
Returns: boolean