nl_tokens: Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined . @param metadataKey A key used to store and retrieve metadata . @param target The target object on which the metadata is defined . @param propertyKey ( Optional ) The property key for the target . @returns true if the metadata key was defined on the target object or its prototype chain ; otherwise false . @example
pl_tokens: function hasMetadata ( metadataKey , target , propertyKey ) { if ( ! IsObject ( target ) ) throw <mask> TypeError ( ) ; if ( ! IsUndefined ( propertyKey ) ) propertyKey = ToPropertyKey ( propertyKey ) ; return OrdinaryHasMetadata ( metadataKey , target , propertyKey ) ; }