Today we are going to see about important functions of arrays that every developer must know. First let us know about little bit of array. Array is nothing but a collection of elements and it contains many built-in properties and methods to resolve any task. Now let’s get deep into the topic.

  • some()
  • every()
  • flat()
  • filter()
  • forEach()
  • findIndex()
  • find ()
  • sort()
  • concat()
  • flatmap()

Some()

The some() method is used to test atleast one element in the array passes the test implemented by the callback function. It is possible to assign a value for this when executing the callback function by using argument.

#nodejs #technology #programming #web-development #javascript

Importance of JavaScript Array methods
1.10 GEEK