(tagType, propsList)
| 58 | }; |
| 59 | |
| 60 | const 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 | |
| 69 | const getBaseTagFromPropsList = (primaryAttributes, propsList) => { |
| 70 | return propsList |
no outgoing calls
no test coverage detected
searching dependent graphs…