@n3okill/utils
Version:
Many javascript helpers
12 lines • 354 B
JavaScript
/* 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