Some()() returns a new array that contains items that satisfy certain conditions. Map() loops over an array and converts each item into something else. Some() returns boolean instead of a negative value. Other functions include shift() and unshift(). The reverse() method reverses an array, which means it changes the original array since Be careful since Be(constconstconst) is destructive. The first element in an array is removed and returns the new length of the array as result. This method changes the length of an array.
Join Hacker Noon
Create your free account to unlock your custom reading experience.