parent
f5e0ce6a84
commit
6960e42c24
|
@ -13,7 +13,8 @@ const isString = (v) => (typeof v) === "string";
|
|||
const isObject = (v) => (typeof v) === "object";
|
||||
const isDefined = (v) => v && (typeof v) != "undefined";
|
||||
const isDefinedOrThrow = (v) =>
|
||||
(isDefined(v) ? () => true
|
||||
(isDefined(v)
|
||||
? () => true
|
||||
: (() => {throw nullOrIndefinedPayload})());
|
||||
|
||||
const isValidPayloadOrThrow = (v) =>
|
||||
|
|
Loading…
Reference in New Issue