MCPcopy
hub / github.com/nfl/react-helmet / getInnermostProperty

Function getInnermostProperty

src/HelmetUtils.js:197–207  ·  view source on GitHub ↗
(propsList, property)

Source from the content-addressed store, hash-verified

195};
196
197const getInnermostProperty = (propsList, property) => {
198 for (let i = propsList.length - 1; i >= 0; i--) {
199 const props = propsList[i];
200
201 if (props.hasOwnProperty(property)) {
202 return props[property];
203 }
204 }
205
206 return null;
207};
208
209const reducePropsToState = propsList => ({
210 baseTag: getBaseTagFromPropsList(

Callers 3

getTitleFromPropsListFunction · 0.85
getOnChangeClientStateFunction · 0.85
reducePropsToStateFunction · 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…