MCPcopy
hub / github.com/react-component/form / hasRules

Function hasRules

src/utils.js:144–151  ·  view source on GitHub ↗
(validate)

Source from the content-addressed store, hash-verified

142}
143
144export function hasRules(validate) {
145 if (validate) {
146 return validate.some((item) => {
147 return item.rules && item.rules.length;
148 });
149 }
150 return false;
151}
152
153export function startsWith(str, prefix) {
154 return str.lastIndexOf(prefix, 0) === 0;

Callers 3

onCollectFunction · 0.90
validateFieldsFunction · 0.90
setFieldsAsDirtyMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected