Learn JavaScript Next – New Array Methods

5.6 Summary

  • Array.from creates an array containing all the values from an array-like object
  • Array.of creates an array with supplied values is safer than new Array
  • Array.prototype.includes checks if array contains a value at any of it’s indices
  • Array.prototype.find searches an array based on a criteria function and returns a first value found
  • Array.prototype.fill fills an array with a specified value.

Read More »