Skip to content

Abhishek278604/myPolyfills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

myPolyfills

A deep dive into JavaScript Prototypes & Polyfills — hand-crafted from scratch.

JavaScript Node.js License Status

View Repo · Report Bug · Request Feature


📖 About the Project

myPolyfills is a focused JavaScript repository dedicated to understanding how core JS built-in methods work under the hood — by implementing them manually using prototypes and polyfills.

Whether you're preparing for interviews, strengthening your JavaScript fundamentals, or just curious about how map, reduce, or flat actually work — this repo has you covered.

"The best way to understand a javascript is to code yourself."


🛠️ Tech Stack

Technology Purpose
JavaScript (ES6+) Core language for all polyfill implementations
Prototypal Inheritance Extending native objects via Array.prototype, String.prototype, etc.
Node.js Runtime environment for executing and testing files locally

✅ No frameworks. No libraries. No build tools. Just pure JavaScript.


📂 Files & Features

mypolyfill-Array1.js   ✅ Latest

Custom polyfills and prototype extensions for n-level nested arrays of numbers.

Polyfill Description
nlevelFlatten Recursively flattens an array of any nesting depth
mean Flattens an array and calculates arithmetic mean to 6 decimal places
median Flattens an array and calculates median value to 6 decimal places
mode Flattens an array and determines the mode or most frequently occurring value(s)

🚀 Getting Started

Prerequisites

  • Node.js installed on your machine, or
  • Any modern browser's Developer Console

Alternatively, paste any file's content directly into your browser DevTools console and experiment in real time.


🧠 Concepts Covered


🗺️ Roadmap

  • flat polyfill : Flatten n-level nested array of numbers
  • flat polyfill and calculate values from an array of numbers : Flatten n-level nested array of numbersStatistical methods: Mean, Median, Mode
  • forEach polyfill
  • reduce polyfill
  • map polyfill
  • filter polyfill
  • find & findIndex polyfills
  • every & some polyfills
  • bind, call, apply polyfills
  • Promise polyfill

💡 Why Build Polyfills?

  • Deepens your understanding of how native JS methods really work
  • Builds stronger intuition around prototypal inheritance
  • Sharpens your algorithm and problem-solving skills
  • Great preparation for technical interviews 🎯
  • Helps you write more predictable, performant code

🤝 Contributing

PLEASE DO NOT !! Send Any Contribution Request

📬 Stay Updated

This repo is actively maintained and expanding.
⭐ Star the repo to get notified when new polyfills drop — keep visiting for updates!


👤 Author

Abhishek@Abhishek278604


📄 License

Distributed under the MIT License. See LICENSE for more information.



Special Credits and Thanks To :

** Thank You !! **

About

I created some of my own polyfills for n-level nested arrays of numbers to make life easy using javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors