Skip to main content
Module

x/lodash/isTypedArray.js

A modern JavaScript utility library delivering modularity, performance, & extras.
Extremely Popular
Go to Latest
File
import baseIsTypedArray from './_baseIsTypedArray.js';import baseUnary from './_baseUnary.js';import nodeUtil from './_nodeUtil.js';
/* Node.js helper references. */var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
/** * Checks if `value` is classified as a typed array. * * @static * @memberOf _ * @since 3.0.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. * @example * * _.isTypedArray(new Uint8Array); * // => true * * _.isTypedArray([]); * // => false */var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
export default isTypedArray;