Skip to main content
Version: 3.27.2

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 entry value can not be coerced into a string