UNPKG

@n3okill/utils

Version:
12 lines 354 B
/* global NodeJS */ import { TypedArrayTypes } from "./_types"; import { kindOf } from "./kindOf"; /** * Check if argument is TypedArray * @param arg * @returns {boolean} */ export function isTypedArray(arg) { return TypedArrayTypes.map((x) => x.toLowerCase()).indexOf(kindOf(arg).toLowerCase()) !== -1; } //# sourceMappingURL=isTypedArray.js.map