Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
326 changes: 326 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added paperproblems/.DS_Store
Binary file not shown.
5 changes: 3 additions & 2 deletions paperproblems/HOF/problem1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ You don't know what it does, but there are clues at the bottom of this file
Use these clues to describe what filter is.
Specifically:
- How many parameters does it have
two
- What are the types of the parameters
array, function
- What does it do?


it takes an array and applies a function which assesses whether or not an element of an array is divisible by itself, depending on if the function returns a boolean of true the element is either passed to a new array using.push or ignored from this new array.

var evenNumbers = [2, 4, 6, 8, 10];
var oddNumbers = [3, 5, 7, 9];
Expand Down
Loading