This snippet will give you the IsArray function for Javascript.

Sample Javascript

Object.prototype.IsArray = function() {
   return this.constructor == Array;
}

2 thought on “IsArray function for Javascript”

Leave a Reply