UNPKG
@stiligita/react
Version:
latest (1.0.0-0)
1.0.0-0
0.0.1-5
0.0.1-4
0.0.1-3
0.0.1-2
0.0.1-1
0.0.1-0
@stiligita/react
/
src
/
utils.js
11 lines
(10 loc)
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * Determines if listener. * *
@param
{
string
} onEvent eventname *
@return
{
boolean
} True if listener, False otherwise. */
export
const
isListener
= onEvent => {
const
[o, n,
Event
] = onEvent
return
o ===
'o'
&& n ===
'n'
&
Event
===
Event
.
toUpperCase
() }