UNPKG

@benev/slate

Version:
15 lines 618 B
export const is = { available: (x) => x !== undefined && x !== null, unavailable: (x) => x === undefined || x === null, /** @deprecated use `unavailable` instead */ void: (x) => x === undefined || x === null, /** @deprecated use `available` instead */ defined: (x) => x !== undefined && x !== null, boolean: (x) => typeof x === "boolean", number: (x) => typeof x === "number", string: (x) => typeof x === "string", bigint: (x) => typeof x === "bigint", object: (x) => typeof x === "object" && x !== null, array: (x) => Array.isArray(x), }; //# sourceMappingURL=is.js.map