JavaScript Array
Array from()
"Array.from ()" separates the values that are written into. it
defines each of the things he separates as a sequence element.
Array isArray()
Array.isArray() function determines whether the value passed to this
function is an array or not. This function returns true if the
argument passed is array else it returns false.
Array pop()
The pop () method removes the last element of an array. And define a
new array. So this method changes the sequence (length and elements).
pop () does not perform properly when applied regularly to
non-sequence arrays. If we apply pop () in an empty array, it returns
the "undefined" value.
Array push()
The push () method adds one or more elements to the end of an array.
And it returns its new length. This changes the number and length of
elements of the array. Although strings are natural, the strings are
not invariant because they are array-like objects, but are not
suitable for applications in this method. Similarly, the Array-like
object also applies to arguments.
Array from()
The Slice() method copies the desired portion of a directory.
Array sort()
The sort () method sorts the items in an array. This order (if we do
not specify a function) is in the form of increasing order.
Array forEach()
The forEach () method is used to execute a function on each element in
an array. In other words: forEach (), the ForEach () method runs a
function once provided for each array element.
Array from()
The Map () method scans through each element of the array. It returns
a new array with the elements it scans. The map() method calls the
provided function once for each element in an array, in order. The map
() method does not change the array, like other methods.