MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / isEvent

Function isEvent

mini-react/src/mini-react.js:112–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 const isEvent = key => key.startsWith("on")
113 const isProperty = key => key !== "children" && !isEvent(key)
114 const isNew = (prev, next) => key => prev[key] !== next[key]
115 const isGone = (prev, next) => key => !(key in next)

Callers 1

isPropertyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected