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.
15 lines • 425 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.arrayIsArray = void 0;
/**
* @public
* Checks if the parameter is an instance of `Array` or is a view of `ArrayBuffer`.
*
* @remarks
* See {@link arrayIsArray}.
*/
function arrayIsArray(obj) {
return obj instanceof Array || ArrayBuffer.isView(obj);
}
exports.arrayIsArray = arrayIsArray;
//# sourceMappingURL=array-is-array.js.map