Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prathambhalke/javascript-polyfills
A collection of essential JavaScript polyfills to ensure cross-browser compatibility and support for older environments.
https://github.com/prathambhalke/javascript-polyfills
babel javascript polyfills transpiler
Last synced: 10 days ago
JSON representation
A collection of essential JavaScript polyfills to ensure cross-browser compatibility and support for older environments.
- Host: GitHub
- URL: https://github.com/prathambhalke/javascript-polyfills
- Owner: prathambhalke
- Created: 2023-07-18T12:24:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-22T11:26:59.000Z (7 months ago)
- Last Synced: 2024-04-22T12:44:49.386Z (7 months ago)
- Topics: babel, javascript, polyfills, transpiler
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 JavaScript Polyfills 🚀
![polyfill](https://github.com/prathambhalke/JavaScript-Polyfills/assets/98319826/31add685-4e54-4c03-8ecd-b42b93f6bd32)This repository contains a collection of JavaScript polyfills for adding support to older browsers and environments that lack native implementations of certain features and APIs.
## How to Use 📚
1. Clone the repository or download the desired polyfill file.
2. Include the polyfill script in your web application using a script tag before your main JavaScript code.
3. Enjoy the extended functionality and compatibility across different browsers.## Available Polyfills 🛠️
1. Array.prototype.myPush: A polyfill for the native Array.prototype.push method, which adds one or more elements to the end of an array.
2. Array.prototype.myIncludes: A polyfill for the native Array.prototype.includes method, which checks if an array includes a specific element.
3. Array.prototype.myFind: A polyfill for the native Array.prototype.find method, which returns the value of the first element in an array that satisfies a provided testing function.
4. Object.assign: A polyfill for the Object.assign method, which copies the values of all enumerable properties from one or more source objects to a target object.
5. Promise.prototype.finally: A polyfill for the Promise.prototype.finally method, which allows you to specify a function to be executed when a promise is settled (either resolved or rejected).
6. String.prototype.myIncludes: A polyfill for the native String.prototype.includes method, which checks if a string contains the specified substring.
7. and more .............. 🌟🌟🌟## Contribution 🤝
Contributions to this repository are welcome! If you find a bug, have a suggestion, or want to add more polyfills, feel free to open an issue or submit a pull request.
Happy coding! 😊