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

Function isValidField

src/validators/required.ts:20–23  ·  view source on GitHub ↗
(value: any, trim: boolean)

Source from the content-addressed store, hash-verified

18 value !== void 0 && value !== null;
19
20const isValidField = (value: any, trim: boolean): boolean =>
21 typeof value === 'string'
22 ? isStringValid(value, trim)
23 : isNonStringValid(value);
24
25export const validator: FieldValidationFunctionSync = fieldValidatorArgs => {
26 const {

Callers 1

validatorFunction · 0.70

Calls 2

isStringValidFunction · 0.85
isNonStringValidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…