UNPKG
@chocolatemilkdev/emitter
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
a basic event emitter.
github.com/Volgite/emitter
Volgite/emitter
@chocolatemilkdev/emitter
/
dist
/
cjs
/
Utils
/
validateEventName.js
8 lines
(7 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
validateEventName
(
input
) {
if
(!input ||
typeof
input !==
"string"
)
throw
new
TypeError
(
'\'eventName\' is not string.'
); }
exports
.
default
= validateEventName;