/**
 * Returns true if `val` is not `null` or `undefined`
 */
export const isDefined = (val) => val !== undefined && val !== null;
/**
 * Returns a function that returns `true` if the given `key` of the object is not `null` or `undefined`.
 *
 * I ❤️ TypeScript.
 */
export const propertyIsDefined = (key) => (val) => isDefined(val[key]);
//# sourceMappingURL=types.js.map