https://github.com/iamrishupatel/polyfills-for-js
all of my implementation for different methods such as map, filter etc.
https://github.com/iamrishupatel/polyfills-for-js
javascript polyfills
Last synced: about 1 year ago
JSON representation
all of my implementation for different methods such as map, filter etc.
- Host: GitHub
- URL: https://github.com/iamrishupatel/polyfills-for-js
- Owner: iamrishupatel
- Created: 2022-03-29T02:57:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-24T13:14:08.000Z (almost 4 years ago)
- Last Synced: 2025-02-12T10:33:21.683Z (over 1 year ago)
- Topics: javascript, polyfills
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
This contains all of my implementation for different function and methods such as `map()`, `filter()` etc.
Purpose of these implementation is understand how different things works under the hood these are in no way
ready to be used in any projects. These polyfills are only for learning purposes.
## Usage
Each implementation is in a seprate file so create an `index.html` file in your local machine as it is ignored
and use any implementation by importing a paricular script.
## Array methods
- [map()](https://github.com/iamrishupatel/polyfills-for-js/blob/main/array-methods/map.js)
- [filter()](https://github.com/iamrishupatel/polyfills-for-js/blob/main/array-methods/filter.js)
- [flatten()](https://github.com/iamrishupatel/polyfills-for-js/blob/main/array-methods/flatten.js)
- [find()](https://github.com/iamrishupatel/polyfills-for-js/blob/main/array-methods/find.js)
- [forEach()](https://github.com/iamrishupatel/polyfills-for-js/blob/main/array-methods/forEach.js)
- [reduce()](https://github.com/iamrishupatel/polyfills-for-js/blob/main/array-methods/reduce.js)
## DOM methods
- [querySelector()](https://github.com/iamrishupatel/polyfills-for-js/blob/main/DOM/querySelector.js)
## Promises
- [Promise class](https://github.com/iamrishupatel/polyfills-for-js/blob/main/promise/promise-class.js)
- [Individual promise methods](https://github.com/iamrishupatel/polyfills-for-js/blob/main/promise/func-implementaion.js)