Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Please use
spoiler flag
when posting your code. And also use proper code formatting (triple backticks to surround your code lines) as it is visible from the dashboard. We could only help you if you post your code properly with code formatting as your latest code submission is different from the one you've posted and the current one is impossible to read or debug.OTOH, Your latest code seems to be a copy of someone's else or coming from an automated tool, which is a red sign !!!
You need to read on how to troubleshoot your solution and the Code of Conduct
This comment is hidden because it contains spoiler information about the solution
I like the variable naming in this one
Just checking the available ?? 0 would be enough instead of divsion to NaN. Recipe will always have some vlaue I guess
Fortunately JS handles division by zero :)
Super duper cool.. You are awesome
cool
me too ;-)
super cool!
This comment is hidden because it contains spoiler information about the solution
Perfect!
GOOD SOLUTION!!
nice! I like it
Object.keys(needs).map() returns array, so then it's destructured to feed values into Math.min()
What does the ...Object here do? I've just seen the three dots in destructuring of arrays like const [head, ...tail] = my_array.
Loading more items...