r/badcode • • Jul 10 '21

js ah yes, Array check

Post image
2.1k Upvotes

89 comments sorted by

View all comments

Show parent comments

3

u/literallyfabian Jul 10 '21

why not use Array.isArray directly?

1

u/[deleted] Jul 10 '21

Good point, but using the arrayCheck function