Skip to content

Commit 5d132b0

Browse files
committed
fix: use Array.prototype.every() for the isLocationLinkArray function
1 parent d753510 commit 5d132b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/adapters/definition-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ export default class DefinitionAdapter {
107107
}))
108108
}
109109
private static isLocationLinkArray(value: any): value is LocationLink[] {
110-
return Array.isArray(value) && LocationLink.is(value[0])
110+
return Array.isArray(value) && value.every((v) => LocationLink.is(v))
111111
}
112112
}

0 commit comments

Comments
 (0)