Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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! 😊