Javascript Array makeArray(value)

Description

Javascript Array makeArray(value)


Array.makeArray = function(value){
  if ( !value ) return [];
  if ( typeof value == "string" ) return [value];
  return Array.prototype.slice.call(value, 0);
};



PreviousNext

Related