vanillajs-helpers

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS

View the Project on GitHub Tokimon/vanillajs-helpers

vanillajs-helpers > “isArray”

External module: “isArray”

Index

Functions


Functions

isArray

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