Tag: javascript array reduce

  • 10 JavaScript Array Methods Every Programmer Should Know

    10 JavaScript Array Methods Every Programmer Should Know

    Arrays are usually used to store a list of elements that need to be accessed by a single variable. I believe that to use JavaScript effectively every developer should be able to use any one of these methods on an array. These methods can save a lot of lines of codes and also allow us to do some pretty awesome function programming!

  • How to Use Reduce on JavaScript Arrays

    How to Use Reduce on JavaScript Arrays

    In functional programming, being able to reduce is one of the fundamental concepts. Reduce is used to iterate through the values in an array and condense all of the values into a single value. Usually the value is a sum of all of the elements, but it could be used to decrement, multiply or even […]