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.
if you attempt function checkThreeAndTwo(array) {
return true
} on node v8 it throws you stderr.
There is no ?? operator in code above
Changed node version to 18 and problem is solved
I have stderr even if function is primitive and return constant value
STDERR:
/home/codewarrior/index.js:42
(map, x) => map.set(x, (map.get(x) ?? 0) +
awesome kata
I like this kata. Thank you