Surprise! Arrays are actually objects in JavaScript. That’s why typeof [ ] returns ‘object’. Always use Array.isArray to properly check …
Surprise! Arrays are actually objects in JavaScript. That’s why typeof [ ] returns ‘object’. Always use Array.isArray to properly check …