It's created as a property of lexicalEnvironment object of function. This object is hidden. We don't have access to that object directly.
ECMAScript® 2020 Language Specification => 8.1 Lexical Environments
so it's the same task, with one more outer loop... ;p
I don't think it is a duplicate, though. In the other kata you're supposed to check if one word is valid; in this one, you're searching the entire board for all words matches in an array of words and returning all words you find in the given board.
I'm mostly opening issues to old katas to prevent others from accidentally approving it (it's approvable, obviously).
I guess you can keep one issue around and close the other if you want.
This kata predates its duplicate by about two years ( which probably explains the lack of random tests ). Also, author is long gone, so it's probably not going to be unpublished.
Would it be reasonable to close this issue?
Needs random tests
A duplicate of https://www.codewars.com/kata/boggle-word-checker
\b i.e word boundary match aren't included into the the match, so you don't have to deal with possible extra boundaries in your matches.
Great kata! Thanks. :-)
\b will also help me out later in coding, but i kept trying to use ^ and it didn't work. Does anyone know why?
What keeps getSecret from being called on createSecretHolder's invocation?
[] The special case [] should be explicit in the kata description
Arguably this would be better because if spread was called in a different context (via bind, call, apply, or by placing it on an object) one might WANT this to point to the context. With null, there is no way to set the context of func from outside.
I just think that the question doesn't care about strict or non-strict mode.So,let's assume the function is in non-strict mode ,then null and this are equal 'cause they all point to global object (non-strict mode). And the null is just cool !