Skip to content

Commit a01f3b1

Browse files
fix(update-18): use typeof instead of instanceof (#14404)
(cherry picked from commit e8c90cc)
1 parent 5c7cbab commit a01f3b1

File tree

1 file changed

+1
-1
lines changed
  • projects/igniteui-angular/migrations/update-18_0_0

1 file changed

+1
-1
lines changed

projects/igniteui-angular/migrations/update-18_0_0/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default (): Rule => async (host: Tree, context: SchematicContext) => {
9292
return s;
9393
}
9494
// ref - https://angular.dev/reference/configs/workspace-config#styles-and-scripts-configuration
95-
if (s instanceof Object && 'input' in s) {
95+
if (typeof s === "object" && 'input' in s) {
9696
return s.input as string;
9797
}
9898
})

0 commit comments

Comments
 (0)