You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
695 B
27 lines
695 B
var baseIsTypedArray = require('./_baseIsTypedArray'), |
|
baseUnary = require('./_baseUnary'), |
|
nodeUtil = require('./_nodeUtil'); |
|
|
|
/* 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; |
|
|
|
module.exports = isTypedArray;
|
|
|