Code style: missing semicolon
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
68530adebb
commit
792d32b3f9
|
@ -6,14 +6,14 @@ const isDefined = (v) => v && (typeof v) != "undefined";
|
||||||
const isDefinedOrThrow = (v, t) =>
|
const isDefinedOrThrow = (v, t) =>
|
||||||
(isDefined(v)
|
(isDefined(v)
|
||||||
? () => true
|
? () => true
|
||||||
: (() => {throw t})());
|
: (() => {throw t;})());
|
||||||
|
|
||||||
const isStringOrObjectOrThrow = (v, t) =>
|
const isStringOrObjectOrThrow = (v, t) =>
|
||||||
(isString(v)
|
(isString(v)
|
||||||
? true
|
? true
|
||||||
: isObject(v)
|
: isObject(v)
|
||||||
? true
|
? true
|
||||||
: (() => {throw t})());
|
: (() => {throw t;})());
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
isString : isString,
|
isString : isString,
|
||||||
|
|
Loading…
Reference in New Issue