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

Function isCheckable

code/new-context-api/public/app.js:3095–3099  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

3093}
3094
3095function isCheckable(elem) {
3096 var type = elem.type;
3097 var nodeName = elem.nodeName;
3098 return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
3099}
3100
3101function getTracker(node) {
3102 return node._valueTracker;

Callers 2

getValueFromNodeFunction · 0.70
trackValueOnNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected