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.
Kata is now retired.
Thank you for your feedback! Fixed it.
Oh, I didn't think of that.
Even better, stick an
Object.freeze(Math)
in the preloaded.How true, great catch.
Xièxiè!
it makes sense
fixed
Fully agree on the random tests, no discussion there.
But I think it's up to the author whether or not to restrict the kata to primitive types or not. If not, how to count unprimitives is the next decision - by constructor, by typeof, or all of 'em as objects. Whichever way, it should be specified ( and that can be as simple as adding "the given array will contain only primitive datatypes" to the description ). But it's a choice. ( Which may affect ranking. )
Resolved
FIXED!
Yes, you can cheat.
Doesn't mean you should.
Closing.
Use a recursive random generator for the
searchValue
. It's slightly advanced, but it's not difficult.Marking the suggestion as resolved; lack of random tests is really an issue.
Thanks, This is fixed now
handled
handled.