You could use Array.isArray(obj)
but it’s not available for IE8 and it doesn’t seem very good on the performance side. The best one on the different browsers is to test: obj instanceof Array
You could use Array.isArray(obj)
but it’s not available for IE8 and it doesn’t seem very good on the performance side. The best one on the different browsers is to test: obj instanceof Array