This folder contains polyfills for commonly used Array methods frequently asked in interviews.
- Map (
_01_map.js): Creates a new array with the results of calling a provided function on every element. - Filter (
_02_filter.js): Creates a new array with all elements that pass the test implemented by the provided function. - Reduce (
_03_reduce.js): Executes a reducer function on each element of the array, resulting in a single output value.
Understanding how these methods work under the hood demonstrates a deep understanding of JavaScript's prototype system and functional programming concepts.