PenaltyBox.prototype.has
Check if the given entry is contained in in the PenaltyBox instance.
Syntax
has(entry)
Parameters
- entry: string- The name of the entry to look up
 
Return value
Returns true if the entry is contained in the PenaltyBox instance, otherwise returns false.
Exceptions
- TypeError- Thrown if the provided entryvalue can not be coerced into a string
 
- Thrown if the provided