
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
chetan-js-polyfill
Advanced tools
A lightweight JavaScript polyfill library to bring modern JS features to older environments. Simple, modular, and dependency-free.
šÆ Focused on minimalism ā only polyfills you actually need.
Install via npm:
npm install chetan-js-polyfills
Or using Yarn:
yarn add chetan-js-polyfills
When you import the package, these polyfills are added to the respective prototypes:
myCall
, myBind
, myApply
myMap
, myFilter
, myReduce
, mySlice
, myFlat
myCreate
import 'chetan-js-polyfills';
// Now you can use the polyfilled methods directly on Function, Array, and Object
You can also import utility functions as named exports:
myDeepCloneObject
myCurrySum
myDeepCompareObjects
myAbstractEquality
myDebounce
myThrottleBasicUsingDate
myThrottleBasicUsingTimer
myThrottleAdvance
myNew
mySetTimeout
myClearTimeout
import {
myDeepCloneObject,
myCurrySum,
myDeepCompareObjects,
myAbstractEquality,
myDebounce,
myThrottleBasicUsingDate,
myThrottleBasicUsingTimer,
myThrottleAdvance,
myNew,
mySetTimeout,
myClearTimeout
} from 'chetan-js-polyfills';
This approach keeps your bundle size small and lets you use only what you need.
Designed to work in environments that support ES5 (like IE11 and above).
Tested in:
Contributions, bug reports, and feature requests are welcome!
MIT License
Ā© 2025 Chetan
Give it a star ā on GitHub ā it helps others discover it! `;
FAQs
Useful JS polyfills and utilities written from scratch
We found that chetan-js-polyfill demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Ā It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.