Skip to content

nan-ci/beta-01-E04

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aborded notions

TEST

test isArray

export the function isArray that should return true if the given value is a an array

test argsToArray3

export the function argsToArray3 that takes 3 arguments and return an array of the 3 given values

test first

export the function first that takes an array and return the first value

test last

export the function last that takes an array and return the last value

test each

export the function each that similarly to Array.prototype.forEach but you don't have to handle the this argument and you should iterate over empty elements and uses an additional last argument which is the array to iterate over:

const arr = [ 1, 2, 3 ]

// Were we would use the method like so :
arr.forEach(console.log)

// We should be able to use your functions as such :
each(console.log, arr)

test filter

Sames as each but for Array.prototype.filter

test map

Sames as each but for Array.prototype.map

test reduce

Sames as each but for Array.prototype.reduce

About

fourth day of the first beta

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published