Method List
- Array
arrray.concat(item… or array) // concatenate arrays
array.join(separator) // return a string
array.push(item…) // push to the end of array
array.pop() // pop from the end of array
array.unshift(item…) // push to head of array
array.shift() // pop from head of array
array.reverse()
array.sort(compareFunction)
array.slice(start, end) // get slice of the array
array.splice(start, deleteCount, item…) // delete slice and insert slice of the array
- Function
function.apply(thisArg, argArray)
function.call(thisArg, arg…)
- Number
number.toExponential(fractionDigits)
number.toFixed(fractionDigits)
number.toPrecision(precision)
number.toString(radix)
- Object
object.hasOwnProperty(name)
- RegExp
regexp.exec(string)
regexp.test(string) // return a boolean
- String
string.charAt(pos)
string.charCodeAt(pos) // return a integer
string.concat(string) // equal to +
string.indexOf(searchString, position)
string.lastIndexOf(searchString, position)
string.localeCompare(that)
string.match(regexp)
string.replace(searchValue, replaceValue)
string.search(regexp) // return a number
string.split(separator, limit) // return an array
string.slice(start, end)
string.substring(start, end)
string.substr(start, count)
string.toLowerCase()
string.toLocaleLowerCase()
string.toUpperCase()
string.toLocaleUpperCase()
string.fromCharCode(charCode…) // return a string from charCodes
- Date
Unique value:
1) new Date().getTime()
2) Date.parse(new Date())