Giter Site home page Giter Site logo

bruhdash's Introduction

bruhdash

bruhdash is an exercise in more advanced JavaScript Array scenarios using the basics Array methods that you have already learned.

It is your job to implment your first library. Bruh.

###Setup:

####Install live-server: npm install -g live-server

You will need to do your work in the browser by starting live-server in your terminal:

$ live-server

...which will allow you to use your browser to load your libary at http://localhost:8080

###Workflow Important: Using the browser debugging techniques we showed you must set breakpoints to inspect your functions as you work through the challenge and test your functions by calling them in the console window.

###Implementation Requirements: Implement the following methods in the library stub provided and implement the following methods from the popular lodash utility library(don't call it a framework).

https://lodash.com/docs#without

Implement the following methods to show your new Array chops:

first(array)

last(array)

indexOf(array, value, [fromIndex=0])

lastIndexOf(array, value, [fromIndex=array.length-1])

initial(array)

compact(array)

slice(array, [start=0], [end=array.length])

drop(array, [n=1])

dropRight(array, [n=1])

take(array, [n=1])

takeRight(array, [n=1])

fill(array, value, [start=0], [end=array.length])

pull(array, [values])

pullAt(array, [indexes])

without(array, [values])

difference(array, [values])

zip([arrays])

unzip(array)

chunk(array, [size=1])

forEach(collection, [iteratee])

map(collection, [iteratee])

filter(collection, [predicate])

reduce(collection, [iteratee], [accumulator])

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.