•When the function you provide gets called, it gets called for each element with three arguments: the element itself, the index of the element, and the array itself (which is seldom useful).
•filter removes unwanted things from an input array.
•Based on a function you give
•Return a copy and doesn’t modify the input array
•map and filter often are used together
Object.assign()Copies the values of all enumerable own properties from one or more source objects to a target object.
Object.keys()Returns an array containing the names of all of the given object's own enumerable string properties.
Object.values()Returns an array containing the values that correspond to all of a given object's own enumerable string properties.
String.fromCharCode()Returns a string created by using the specified sequence of Unicode values.String.fromCodePoint()Returns a string created by using the specified sequence of code points.String.raw() Returns a string created from a raw template string.
typeof
typeof null = objec
Type
result
Null
"object"(见下文)
Boolean
"boolean"
Number
"number"
String
"string"
Symbol (ECMAScript 6 新增)
"symbol"
宿主对象(由JS环境提供)
Implementation-dependent
函数对象([[Call]] 在ECMA-262条款中实现了)
"function"
任何其他对象
"object"
New
Float
parseFloat(String s) return float
JSON
JSON.stringify() Convert a JavaScript object into a string
JSON.parse() Convert text into a JavaScript object: