nl_tokens: Whether a value is a valid event type - non - empty string or array .
pl_tokens: function isValidEventType ( <mask> ) { return ( // The regex here verifies that the `type` contains at least one non- // whitespace character. typeof type === 'string' && / \S / . test ( type ) || Array . isArray ( type ) && ! ! type . length ) ; }