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

Function getAttributesFromPropsList

src/HelmetUtils.js:60–67  ·  view source on GitHub ↗
(tagType, propsList)

Source from the content-addressed store, hash-verified

58};
59
60const getAttributesFromPropsList = (tagType, propsList) => {
61 return propsList
62 .filter(props => typeof props[tagType] !== "undefined")
63 .map(props => props[tagType])
64 .reduce((tagAttrs, current) => {
65 return {...tagAttrs, ...current};
66 }, {});
67};
68
69const getBaseTagFromPropsList = (primaryAttributes, propsList) => {
70 return propsList

Callers 1

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…