Skip to content

A collection of essential JavaScript polyfills to ensure cross-browser compatibility and support for older environments.

Notifications You must be signed in to change notification settings

prathambhalke/JavaScript-Polyfills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

20 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ JavaScript Polyfills πŸš€

polyfill

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

About

A collection of essential JavaScript polyfills to ensure cross-browser compatibility and support for older environments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published