roll-your-own icon indicating copy to clipboard operation
roll-your-own copied to clipboard

Learn built-in JavaScript methods by rolling your own!

Roll Your Own JavaScript

Learning JavaScript by recreating it


Build Status

This repository is purely educational exploration of recreating built-in JavaScript methods. I started with a number of Array methods, but it would be great to expand to other Object and primitive types as well!

Methods

  • Array Methods
    • concat
    • every
    • filter
    • isArray
    • map
    • of
    • reduce
    • some
    • toString

Contributing

Happy to have PRs to the repository proposing new methods or fixes to existing ones! Please open an issue first to get approval for any work you do, I'd hate to reject proposed changes because someone else is already doing the same work.

Here's the general process to follow to contribute:

  1. Propose the change/fix in a Github Issue
  2. Clone down the repository
  3. Create tests for the changes you're making
  4. Make the change and pass all tests
  5. Create a Pull Request to this repository with the update(s)

Please try not to use known polyfills for the methods you contribute, I'd like this to remain a learning experience rather than a copy/paste exercise!


Want to learn more about JavaScript? Consider signing up for my free newsletter where I periodically send out digestible bits of JavaScript knowledge!