MCPcopy Create free account
hub / github.com/microsoft/SandDance / isCheckable

Function isCheckable

docs/external/js/react-dom.development.js:1806–1810  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

1804 }
1805
1806 function isCheckable(elem) {
1807 var type = elem.type;
1808 var nodeName = elem.nodeName;
1809 return nodeName && nodeName.toLowerCase() === 'input' && (type === 'checkbox' || type === 'radio');
1810 }
1811
1812 function getTracker(node) {
1813 return node._valueTracker;

Callers 2

getValueFromNodeFunction · 0.85
trackValueOnNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected