Is typeof an array?

One type of object that is built-in to JavaScript is the array, and the typeof of an array is “object” : typeof [] === `object` // true . ECMAScript 5 introduced an Array. isArray() method to check for an array, since typeof will not be able to tell arrays from other objects.

Sizin İçin Seçtik  What happens to my Ethereum when Ethereum 2 comes out?

Leave a Reply

Your email address will not be published. Required fields are marked *