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

Function isEmptyValue

src/validators/pattern-helpers.ts:1–2  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1const isEmptyValue = value =>
2 value === null || value === undefined || value === '';
3
4export const isValidPattern = (value, pattern: RegExp): boolean =>
5 isEmptyValue(value) ? true : pattern.test(value);

Callers 1

isValidPatternFunction · 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…