has()
Checks whether the error of the given id exists in a specified object
CommonErrors.prototype.has()
CommonErrors.prototype.has()
The has()
method checks whether the error of the given id
exists in a specified object.
common-errors.class.ts
Generic type variables
A generic type variable ErrorId
constrained by the generic type variable Id
of the CommonErrors
object indicates the type picked from the Id
and its exact type is useful in picking the specific error from the storage.
Parameters
The error identification number of generic type variable ErrorId
to test for the presence of the error in the object.
Return type
this
this
Example usage
Last updated