- This repository is a collection of JavaScript polyfills
- focusing on recreating commonly used methods from scratch.
- The project is organized in a way that allows for easy understanding and navigation
- With each polyfill having its own dedicated folder containing both documentation and implementation.
- src/
- polyfills/: Contains all the polyfill implementations.
- filter/
filter.md
: Overview of theArray.prototype.filter
method.filterPolyfill.js
: Polyfill implementation forArray.prototype.filter
.
- forEach/
forEach.md
: Overview of theArray.prototype.forEach
method.forEachPolyfill.js
: Polyfill implementation forArray.prototype.forEach
.
- map/
map.md
: Overview of theArray.prototype.map
method.mapPolyfill.js
: Polyfill implementation forArray.prototype.map
.
- reduce/
reduce.md
: Overview of theArray.prototype.reduce
method.reducePolyfill.js
: Polyfill implementation forArray.prototype.reduce
.
- filter/
- polyfills/: Contains all the polyfill implementations.
- dataStructures/: (To be populated with data structure implementations)
- tests/: (To be populated with test files)
- Files:
map.md
: Overview of the method, use cases, and examples.mapPolyfill.js
: Custom implementation of themap
method.
- Files:
forEach.md
: Overview of the method, use cases, and examples.forEachPolyfill.js
: Custom implementation of theforEach
method.
- Files:
filter.md
: Overview of the method, use cases, and examples.filterPolyfill.js
: Custom implementation of thefilter
method.
- Files:
reduce.md
: Overview of the method, use cases, and examples.reducePolyfill.js
: Custom implementation of thereduce
method.
To explore the polyfills:
-
Clone the repository:
git clone https://github.com/your-username/MyJavascriptPractice.git
-
Navigate to the
src/polyfill
folder. -
Explore the folders for individual polyfills.
-
Review the .md files for detailed overview.
-
Check out the .js files for the polyfill implementations.