_.isTypedArray(value)

sourcenpm package

Checks if value is classified as a typed array.

Since

3.0.0

Arguments

  • value (*): The value to check.

Returns

(boolean): Returns true if value is a typed array, else false.

Example

  1. _.isTypedArray(new Uint8Array);
    // => true
    _.isTypedArray([]);
    // => false