Appends single scope if passed
Appends multiple scopes if passed
Returns the scopes as an array of string values
Check if set of scopes contains only the defaults
Check if a given scope is present in this set of scopes.
Check if a set of scopes is present in this set of scopes.
Returns size of set of scopes.
Check if scopes intersect between this set and another.
Prints scopes into a space-delimited string
Prints scopes into a space-delimited lower-case string (used for caching)
Removes default scopes from set of scopes Primarily used to prevent cache misses if the default scopes are not returned from the server
Removes element from set of scopes.
Combines an array of scopes with the current set of scopes.
Factory method to create ScopeSet from space-delimited string
Generated using TypeDoc
The ScopeSet class creates a set of scopes. Scopes are case-insensitive, unique values, so the Set object in JS makes the most sense to implement for this class. All scopes are trimmed and converted to lower case strings in intersection and union functions to ensure uniqueness of strings.