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

Function hasFieldIdArrayValidator

src/helpers/helpers.ts:47–50  ·  view source on GitHub ↗
(
  fieldId: string,
  schema: InternalFieldValidationSchema
)

Source from the content-addressed store, hash-verified

45): boolean => !isUndefinedOrNull(schema) && !isUndefinedOrNull(schema[fieldId]);
46
47export const hasFieldIdArrayValidator = (
48 fieldId: string,
49 schema: InternalFieldValidationSchema
50): boolean => /\[.*\]/.test(fieldId) && !isFieldIdInSchema(fieldId, schema);
51
52export const formatFieldForArrayField = (fieldId: string, value) => {
53 const formattedValue = set({}, fieldId, value);

Callers 2

FormValidationClass · 0.90
helpers.spec.tsFile · 0.90

Calls 1

isFieldIdInSchemaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…