The Math.ceil() function in JavaScript is used to round the number passed as parameter to its nearest integer in Upward direction of rounding i.e towards the greater value.
I know you didn't mention my English, but other than that I cannot thing of much more: basically you just need to do some currying to a filter function: filter1 parses numbers as explained in the description, given the initial array and integer as initializing parameters.
This comment is hidden because it contains spoiler information about the solution
The Math.ceil() function in JavaScript is used to round the number passed as parameter to its nearest integer in Upward direction of rounding i.e towards the greater value.
This comment is hidden because it contains spoiler information about the solution
I know you didn't mention my English, but other than that I cannot thing of much more: basically you just need to do some currying to a filter function:
filter1
parses numbers as explained in the description, given the initial array and integer as initializing parameters.^_^
Let's try this: does working through the example test cases gives you a better insight than the one you might get trying to decypher my poor English?
You need to create a function that returns other functions, taking parameters to pre-set itself.
Aka "currying" (sorta of).
This comment is hidden because it contains spoiler information about the solution