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