Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103746222
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
Tue, Mar 4, 11:18
Size
376 B
Mime Type
text/x-Algol68
Expires
Thu, Mar 6, 11:18 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
24654506
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