Rx Learning Note: JavaScript array operations 2016-07-03 additions and deletions elements
Unshift () Adding elements to an array switch
Array.unshift ("value"); Array.unshift (123); Array.unshift ("value1", "value2");
Push () Adds an element at the end of the array
Array.push ("value"); Array.push (123); Array.push ("value1", "value2")
Pop () popup (removed in array and as return value) array tail element
Array.pop (); var newvar=array.pop ();
Shift () pops the first element of the array
Array.shift (); var newvar=array.shift ();
Iterated algebraic groups
Map () Iteration (traversal operation) array element, returning the new array
Reduce () iterates over the array elements, returns calculated values, and can be used to calculate sums, product, etc.
Filter () filters the element, returning the new array
Reverse () reverse permutation, return new array
Array manipulation
Concat () merges the array, returning the new array
Join () merges the array elements into a single string that can be separated by the specified characters
Split () (string method) splits a string into a string array using a specific character
Rx Learning Note: JavaScript array manipulation