After each section summarizes has the instance code, the Code yellow box method does not change the original array. PS: All instances of the results are run.
Array
--Common method
Stacks: pop () push (multiple items)
queues:shift () Unshift (multiple items)
sorting:sort ([function]) reverse ()
Convert:toString () tolocatestring () join ([separator])
Action:concat ([multiple items]) slice (starting point [, end Point]) splice (starting point, Number [, multiple items])
Location:indexOf (Entry [, start]) LastIndexOf (entry [, starting point])
--Iterative method
Parameters: (function (value, position, array itself) [, scope object])
Traversal:ForEach ()
Mapping: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 (position) charcodeat (position) String. fromCharCode (multiple character encodings)
Space: trim ()
comparison: localecompare (String)
Convert: touppercase () toLowerCase () toLocaleUpperCase () toLocaleLowerCase () split ([connector])
Action: substring (beginning [, end]) substr (start [, number]) replace (regexp/string, string/function)
Concat ([multiple items]) slice (start [, end])
Location: indexOf (Entry [, start]) LastIndexOf (entry [, starting point])
--matching method
Str.match (REG) reg.exec (str)
Str.search (REG) reg.test (str)
The above is the entire content of this article, I hope the content of this article for everyone's study or work can bring some help, but also hope that a lot of support cloud Habitat community!