Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F95169518
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
Fri, Dec 13, 10:16
Size
376 B
Mime Type
text/x-Algol68
Expires
Sun, Dec 15, 10:16 (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