JavaScript methods you should know about.
Hello folks, hope you all doing well . In this particular blog i am sharing some of tradition but evergreen javaScript methods that every one should know about. Methods forEach : This method allows you to iterate through all the elements present inside the array, pretty similar to forEach of other programming languages. example: array . forEach ( function ( currentValue , index ){ /** * stuff to perform with each record */ }); map : This method returns a new array by calling the provide method once for each and every element present inside array in the order in which they stored into array, it does execute the provide method for empty value of array. example : array . map ( function ( element ){ /** * stuff to perform to each element of array */ }); filter : This method returns an array that passes the condition mat