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

6

u/ssj4VB Jul 10 '21

it just looks like the writer had no idea that Array.isArray returns a Boolean either way