Git Product home page Git Product logo

array-methods-playground's Introduction

Let's do something fun.

Implement one array method with test for it using Jest and send in a Pull Request.

This is to familiarize you with open source contribution, CI and of course Testing.

Getting Started

  • Read this step by step guide to get your code into this repository

  • Pick an array method, there is a list here make sure no one has written it.

  • Create a new file in the src directory <METHOD_NAME>.js e.g map.js make sure the method hasn't been written already.

  • create a new file to write your tests <METHOD_NAME>.test.js e.g map.test.js

  • I wrote map.js and map.test.js feel free to use it as a template

  • Check MDN for the signature of the array method you have chosen to write

Rules

  1. You can’t reuse any array method in your implementation e.g forEach, map. Use for, while, for-of,... if you need to iterate.

  2. In the __test__ directory, create a new file <METHOD_NAME>.test.js, check __test__/map.test.js for a test sample to guide your implementation. You must write enough test for any array method you implement.

  3. Add a link to your GitHub profile and the method you implemeted to the contributors section.

  4. Your method should be prefixed with an _ e.g Array.prototype._map = function(){}

  5. You can't write a method that someone has previously written. Please check contributions section below to see all methods that have been implemented.

....more

Contributors

array-methods-playground's People

Contributors

marvinjude avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.