function isArray(value) {
  return value != null &&
      typeof value == TYPE_object &&
      typeof value.length == TYPE_number;
}
Detect if an object looks like an Array.
Note that instanceof Array is not robust; for example an Array
created in another iframe fails instanceof Array.
@param {Object|null} value Object to interrogate
@return {boolean} Is the object an array?