mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Remove unary helpers.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import baseIsTypedArray from './_baseIsTypedArray.js';
|
||||
import baseUnary from './_baseUnary.js';
|
||||
import nodeUtil from './_nodeUtil.js';
|
||||
|
||||
/* Node.js helper references. */
|
||||
@@ -22,6 +21,8 @@ const nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
|
||||
* _.isTypedArray([]);
|
||||
* // => false
|
||||
*/
|
||||
const isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
||||
const isTypedArray = nodeIsTypedArray
|
||||
? value => nodeIsTypedArray(value)
|
||||
: baseIsTypedArray;
|
||||
|
||||
export default isTypedArray;
|
||||
|
||||
Reference in New Issue
Block a user