Then there's no point disabling those two functions. It's like addition is not allowed but subtraction is allowed.
The description only mentioned Math.sqrt() and Math.pow(). So maybe it's intentionally allowed?
I like this one
Yes you're right. These may be considered extra by requirements but those are really the best practices IMHO. I've cited safe coding & old browser support as reasons.
I may understand you wrong, but to me it seems you want to add code, that is not covered by the requirements. If there is quoted that you have an array with something in, you should not check for null.
I know array is full of junk but for safe coding atleast there should be a null check else this code will crash. Also some old browsers like IE8 will not support .indexOf() method on array.
This comment is hidden because it contains spoiler information about the solution
It's pointless to disable map and filter. Why not make the kata in C only as we talk about it?
Also disabling map breaks the kata.
Also needs example tests.
You should put in the description that is necessary to define the map method in order to pass this kata.
This is a very good kata! Though description needs to be updated squareRoot(41) is 6.40312 not 6.24500
I get TypeError: obj.map is not a function..., even with an empty function.
Any idea what is wrong ?
TypeError: obj.map is not a function...