function isArray(target) {
    return Object.prototype.toString.apply(target) === '[object Array]';
}
Helper function for determining whether target object is an array

@param target the object under test
@return {Boolean} true if array, false otherwise