After each part is summarized, there is an instance code. The yellow box method in the code does not change the original array. PS: all instance results are obtained one by one.
Array
-- Common method
Stack: Pop () push (multiple items)
Queue: Shift () unshift (multiple items)
Sort: Sort ([function]) reverse ()
Conversion: ToString () toLocateString () join ([separator])
Operation: Concat ([multiple items]) slice (start point [, end point]) splice (start point, number of items [, multiple items])
Location: IndexOf (item [, start point]) lastIndexOf (item [, start point])
-- Iteration method
Parameters:( Function (value, position, array itself) [, scope object])
Traversal: ForEach ()
Ing: Map ()
Filter: Filter ()
Detection: Every () some ()
Parameters:( Function (previous value, current value, position, array itself) [, initial value])
Merge: Reduce () reduceRight ()
String
-- Common method
Character: CharAt (location) charCodeAt (location) String. fromCharCode (multiple character encoding)
Space: Trim ()
Comparison: LocaleCompare (string)
Conversion: ToUpperCase () toLowerCase () toLocaleUpperCase () toLocaleLowerCase () split ([connector])
Operation: Substring (start point [, end point]) substr (start point [, number]) replace (RegExp/string, string/function)
Concat ([multiple items]) slice (start point [, end point])
Location: IndexOf (item [, start point]) lastIndexOf (item [, start point])
-- Matching method
Str. match (reg) reg.exe c (str)
Str. search (reg) reg. test (str)