Skip to content

hardikdhamija96/MyJavascriptPractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyJavascriptPractice

  • This repository is a collection of JavaScript polyfills
  • focusing on recreating commonly used methods from scratch.
  • The project is organized in a way that allows for easy understanding and navigation
  • With each polyfill having its own dedicated folder containing both documentation and implementation.

Project Structure

  • src/
    • polyfills/: Contains all the polyfill implementations.
      • filter/
        • filter.md: Overview of the Array.prototype.filter method.
        • filterPolyfill.js: Polyfill implementation for Array.prototype.filter.
      • forEach/
        • forEach.md: Overview of the Array.prototype.forEach method.
        • forEachPolyfill.js: Polyfill implementation for Array.prototype.forEach.
      • map/
        • map.md: Overview of the Array.prototype.map method.
        • mapPolyfill.js: Polyfill implementation for Array.prototype.map.
      • reduce/
        • reduce.md: Overview of the Array.prototype.reduce method.
        • reducePolyfill.js: Polyfill implementation for Array.prototype.reduce.
  • dataStructures/: (To be populated with data structure implementations)
  • tests/: (To be populated with test files)

Polyfills Included

1. Array.prototype.map

  • Files:
    • map.md: Overview of the method, use cases, and examples.
    • mapPolyfill.js: Custom implementation of the map method.

2. Array.prototype.forEach

  • Files:
    • forEach.md: Overview of the method, use cases, and examples.
    • forEachPolyfill.js: Custom implementation of the forEach method.

3. Array.prototype.filter

  • Files:
    • filter.md: Overview of the method, use cases, and examples.
    • filterPolyfill.js: Custom implementation of the filter method.

4. Array.prototype.reduce

  • Files:
    • reduce.md: Overview of the method, use cases, and examples.
    • reducePolyfill.js: Custom implementation of the reduce method.

Getting Started

To explore the polyfills:

  1. Clone the repository:

    git clone https://github.com/your-username/MyJavascriptPractice.git
  2. Navigate to the src/polyfill folder.

  3. Explore the folders for individual polyfills.

  4. Review the .md files for detailed overview.

  5. Check out the .js files for the polyfill implementations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published