Skip to content

Commit

Permalink
Update src/_util/is.mjs
Browse files Browse the repository at this point in the history
Co-authored-by: Kenta Moriuchi <moriken@kimamass.com>
  • Loading branch information
sliftist and petamoriken committed Mar 9, 2024
1 parent d256c94 commit d79920f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/_util/is.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export function isNativeBigIntTypedArray(value) {
function isArrayBuffer(value) {
try {
// ArrayBuffers are never arrays
if (Array.isArray(value)) return false;
if (ArrayIsArray(value)) {
return false;
}
ArrayBufferPrototypeGetByteLength(/** @type {any} */ (value));
return true;
} catch (e) {
Expand Down

0 comments on commit d79920f

Please sign in to comment.