isTypedArray source npm

_.isTypedArray(value)

Checks if value is classified as a typed array.

Arguments

  1. value (*)

    The value to check.

Returns (boolean)

Returns true if value is correctly classified, else false.

Example

_.isTypedArray(new Uint8Array);
// => true

_.isTypedArray([]);
// => false