Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95071109
isInput.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Dec 12, 15:32
Size
376 B
Mime Type
text/x-Algol68
Expires
Sat, Dec 14, 15:32 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22921159
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
isInput.js
View Options
"use strict";
exports.__esModule = true;
exports.default = isInput;
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
*/
function isInput(node) {
return node ? regExpInputs.test(node.nodeName) : false;
}
module.exports = exports["default"];
Event Timeline
Log In to Comment