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

Method getValidFieldsFullName

src/createFieldsStore.js:145–155  ·  view source on GitHub ↗
(maybePartialName)

Source from the content-addressed store, hash-verified

143 }
144
145 getValidFieldsFullName(maybePartialName) {
146 const maybePartialNames = Array.isArray(maybePartialName) ?
147 maybePartialName : [maybePartialName];
148 return this.getValidFieldsName()
149 .filter(fullName => maybePartialNames.some(partialName => (
150 fullName === partialName || (
151 startsWith(fullName, partialName) &&
152 ['.', '['].indexOf(fullName[partialName.length]) >= 0
153 )
154 )));
155 }
156
157 getFieldValuePropValue(fieldMeta) {
158 const { name, getValueProps, valuePropName } = fieldMeta;

Callers 3

resetFieldsMethod · 0.95
getNestedFieldMethod · 0.95
validateFieldsFunction · 0.80

Calls 2

getValidFieldsNameMethod · 0.95
startsWithFunction · 0.90

Tested by

no test coverage detected