In class we will aim to solve Object.size and Object.min.
Then, continue with the following instructions
-
Make sure you understand the solutions to the first two functions
-
Take a look at the next function,
Object.max. Think about the steps you will need to take to identify the maximum value in an object, and write the steps out in pseudocode. -
Add a
.onlyto the test for this function and run it withnpm test, to see it fail (Red, Green, Refactor!):
-
Implement the code for this function.
-
Run the tests again, hopefully they now pass.
-
Continue this process for the remaining functions:
clonegethassuminvertaddAll
There are only 3 functions to complete this week.
Implement the following functions using TDD:
findeverysome
Remember that the tests are already written and will help you understand how the functions are intended to be used.
