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

Method isValidNestedFieldName

src/createFieldsStore.js:265–268  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

263 // @private
264 // BG: `a` and `a.b` cannot be use in the same form
265 isValidNestedFieldName(name) {
266 const names = this.getAllFieldsName();
267 return names.every(n => !partOf(n, name) && !partOf(name, n));
268 }
269
270 clearField(name) {
271 delete this.fields[name];

Callers 1

getFieldPropsFunction · 0.80

Calls 2

getAllFieldsNameMethod · 0.95
partOfFunction · 0.85

Tested by

no test coverage detected