MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / isCheckable

Function isCheckable

code/controlled-uncontrolled/public/app.js:3058–3062  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3056}
3057
3058function isCheckable(elem) {
3059 var type = elem.type;
3060 var nodeName = elem.nodeName;
3061 return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
3062}
3063
3064function getTracker(node) {
3065 return node._valueTracker;

Callers 2

getValueFromNodeFunction · 0.70
trackValueOnNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected