parent
6ab5f3648a
commit
b0834fe962
|
@ -575,7 +575,7 @@ export class StaticReflector implements CompileReflector {
|
||||||
if (isPrimitive(expression)) {
|
if (isPrimitive(expression)) {
|
||||||
return expression;
|
return expression;
|
||||||
}
|
}
|
||||||
if (expression instanceof Array) {
|
if (Array.isArray(expression)) {
|
||||||
const result: any[] = [];
|
const result: any[] = [];
|
||||||
for (const item of (<any>expression)) {
|
for (const item of (<any>expression)) {
|
||||||
// Check for a spread expression
|
// Check for a spread expression
|
||||||
|
|
|
@ -168,7 +168,7 @@ export function stringify(token: any): string {
|
||||||
return token;
|
return token;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (token instanceof Array) {
|
if (Array.isArray(token)) {
|
||||||
return '[' + token.map(stringify).join(', ') + ']';
|
return '[' + token.map(stringify).join(', ') + ']';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue