Page MenuHomec4science

isInput.js
No OneTemporary

File Metadata

Created
Fri, Dec 13, 07:47

isInput.js

var regExpInputs = /^(?:input|select|textarea|button)$/i;
/**
* Checks if a given element is an input (input, select, textarea or button).
*
* @param node the element to check
*/
export default function isInput(node) {
return node ? regExpInputs.test(node.nodeName) : false;
}

Event Timeline