Skip to content

@serenity-is/corelib / isArray

Variable: isArray()

const isArray: (arg) => arg is any[] = Array.isArray

Defined in: src/compat/arrays-compat.ts:167

Tests whether a value is an array.

Parameters

arg

any

Returns

arg is any[]

Remarks

Thin re-export of Array.isArray for legacy Q.isArray call sites.

Deprecated

Use Array.isArray directly.

Example

isArray([1, 2, 3]); // true
isArray({}); // false