Skip to content

@longmo-utils/common / isArray

Function: isArray()

ts
function isArray(arg): boolean;

是否是数组

Parameters

ParameterTypeDescription
argany参数

Returns

boolean

true|false

Example

ts
isArray({}) // false
isArray(1) // false
isArray([]) // true

Released under the MIT License.