jacemi / bruhdash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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])

About

License:MIT License


Languages

Language:JavaScript 98.1%Language:CSS 1.8%Language:HTML 0.2%