We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f221070 commit 2fac962Copy full SHA for 2fac962
support/types.js
@@ -68,7 +68,19 @@ function isTypedArray(value) {
68
if (Uint8ArraySupported && SymbolToStringTagSupported) {
69
return TypedArrayProto_toStringTag(value) !== undefined;
70
} else {
71
- return ObjectToString(value) === '[object TypedArray]';
+ return (
72
+ isUint8Array(value) ||
73
+ isUint8ClampedArray(value) ||
74
+ isUint16Array(value) ||
75
+ isUint32Array(value) ||
76
+ isInt8Array(value) ||
77
+ isInt16Array(value) ||
78
+ isInt32Array(value) ||
79
+ isFloat32Array(value) ||
80
+ isFloat64Array(value) ||
81
+ isBigInt64Array(value) ||
82
+ isBigUint64Array(value)
83
+ );
84
}
85
86
exports.isTypedArray = isTypedArray;
0 commit comments