This directory contains custom implementations (polyfills) of native JavaScript methods that are frequently asked in frontend interviews.
- Array Methods:
map,filter,reduce. - Function Methods:
bind,call,apply. - Promise Methods:
all,allSettled. - Object Methods:
create.
- Understand Under-the-Hood Mechanics: It proves you know how JS works, not just how to use it.
- Prototype Mastery: You'll get comfortable with
Function.prototypeandArray.prototype. - Context & Scope: Implementing
bind,call, andapplyis the best way to master thethiskeyword. - Asynchronous Patterns: Coding
Promise.allteaches you how to manage multiple async operations manually.
Tip
Always try to implement these without looking at the code first, then compare with the versions provided here.