A rule for an enumerated value: valid when value is one of allowed (compared with includes, so no inherited Object.prototype name can pass and no trimming or case-folding happens).
value
allowed
includes
Object.prototype
A rule for an enumerated value: valid when
valueis one ofallowed(compared withincludes, so no inheritedObject.prototypename can pass and no trimming or case-folding happens).