MCPcopy Create free account
hub / github.com/AlloyTeam/PhyTouch / isFilterProps

Function isFilterProps

transformjs/react/transform.react.js:166–176  ·  view source on GitHub ↗
(prop)

Source from the content-addressed store, hash-verified

164}
165
166function isFilterProps(prop) {
167 let filterProps = [].concat(propArr, ['children']);
168
169 for(let i=0,len=filterProps.length; i<filterProps.length; i++) {
170 if(filterProps[i] === prop) {
171 return true;
172 }
173 }
174
175 return false;
176}
177
178function getOtherProps(props) {
179 let newProps = {};

Callers 1

getOtherPropsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected