How to check if a JavaScript object is an array?

preview_player
Показать описание
This video show you how to check if a JavaScript Object is an array.
**********Watch all JavaScript Tutorials**********

***************************************************

Рекомендации по теме
Комментарии
Автор

I miss the intros in your older tutorials where you would say your name and "from Bonsaiilabs, and today we are going to be looking at ect ect ect." Made the video more formal, but had a nice taste of friendliness.

mothergaea
Автор

Is it me or it didn't work if an array is a member of an object literal?

Let a = {
n:[ ]
}

Array.isArray(a.n) // undefined?

asagiai