MCPcopy Index your code
hub / github.com/triggerdotdev/jsonhero-web / isNullable

Function isNullable

app/utilities/nullable.ts:3–11  ·  view source on GitHub ↗
(relatedPaths: string[], json: unknown)

Source from the content-addressed store, hash-verified

1import { JSONHeroPath } from "@jsonhero/path";
2
3export function isNullable(relatedPaths: string[], json: unknown): boolean {
4 return relatedPaths.some((path) => {
5 const heroPath = new JSONHeroPath(path);
6
7 const value = heroPath.first(json);
8
9 return value == null;
10 });
11}

Callers 1

InfoHeaderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected