We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c07a97 commit 1c6cb79Copy full SHA for 1c6cb79
1 file changed
packages/oauth2-cli/src/Token/Scope.ts
@@ -6,3 +6,10 @@ export function toString(scope: ish, separator = ' '): string {
6
}
7
return scope.join(separator);
8
9
+
10
+export function toArray(scope: ish, separator = ' '): string[] {
11
+ if (Array.isArray(scope)) {
12
+ return scope;
13
+ }
14
+ return scope.split(separator);
15
+}
0 commit comments