SyntaxFix
Write A Post
Hire A Developer
Questions
If you are using Angular, you can use the angular.isArray() function
var myArray = []; angular.isArray(myArray); // returns true var myObj = {}; angular.isArray(myObj); //returns false
http://docs.angularjs.org/api/ng/function/angular.isArray