UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

11 lines 262 B
/** * @public * Checks if the parameter is an instance of `Array` or is a view of `ArrayBuffer`. * * @remarks * See {@link arrayIsArray}. */ export function arrayIsArray(obj: unknown): boolean { return obj instanceof Array || ArrayBuffer.isView(obj); }