An open API service indexing awesome lists of open source software.

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.

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)