Skip to content

Commit e09e86d

Browse files
MridulMridul
andauthored
NodeUtils: Replace instanceof Array with Array.isArray(). (#33262)
Co-authored-by: Mridul <iammridul012@gamil.com>
1 parent 75c49df commit e09e86d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nodes/core/NodeUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function cyrb53( value, seed = 0 ) {
1818

1919
let h1 = 0xdeadbeef ^ seed, h2 = 0x41c6ce57 ^ seed;
2020

21-
if ( value instanceof Array ) {
21+
if ( Array.isArray( value ) ) {
2222

2323
for ( let i = 0, val; i < value.length; i ++ ) {
2424

0 commit comments

Comments
 (0)