Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Array Polyfills

This folder contains polyfills for commonly used Array methods frequently asked in interviews.

Methods Included:

  1. Map (_01_map.js): Creates a new array with the results of calling a provided function on every element.
  2. Filter (_02_filter.js): Creates a new array with all elements that pass the test implemented by the provided function.
  3. Reduce (_03_reduce.js): Executes a reducer function on each element of the array, resulting in a single output value.

Why Polyfills?

Understanding how these methods work under the hood demonstrates a deep understanding of JavaScript's prototype system and functional programming concepts.