MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / isCoercible

Method isCoercible

packages/repository/src/types/array.ts:28–34  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

26 }
27
28 isCoercible(value: any): boolean {
29 if (value == null) return true;
30 if (!Array.isArray(value)) {
31 return false;
32 }
33 return value.every(i => this.itemType.isCoercible(i));
34 }
35
36 defaultValue(): T[] {
37 return [];

Callers

nothing calls this directly

Calls 1

isCoercibleMethod · 0.65

Tested by

no test coverage detected