Checks if the given value is within the permitted range for key.
It is a programmer error if value is not of the correct type — you must check for this first.
the value to check
true if value is valid for key
Checks if the given value is within the permitted range for key.
It is a programmer error if value is not of the correct type — you must check for this first.