MCPcopy Create free account
hub / github.com/Lemoncode/fonk / isNonStringValid

Function isNonStringValid

src/validators/required.ts:17–18  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

15 trim ? value.trim().length > 0 : value.length > 0;
16
17const isNonStringValid = (value: any): boolean =>
18 value !== void 0 && value !== null;
19
20const isValidField = (value: any, trim: boolean): boolean =>
21 typeof value === 'string'

Callers 1

isValidFieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…