/** * Primitive types in TypeScript. */ export type Primitive = | string | number | boolean | bigint | symbol | undefined | null; /** * Returns `true` if the value is a primitive. * @value The value to check. * * @example * ```typescript * isPrimitive(''); // => true * isPrimitive('a'); // => true * isPrimitive(0); // => true * isPrimitive(false); // => true * isPrimitive(null); // => true * isPrimitive(undefined); // => true * isPrimitive({}); // => false * isPrimitive([]); // => false * isPrimitive(() => {}); // => false * isObject(/a/); // => false * isObject(new Number(0)); // => false * isObject(new String('')); // => false * ``` * * @see {@link isObject} */ declare const isPrimitive: (value: unknown) => value is Primitive; export default isPrimitive; //# sourceMappingURL=isPrimitive.d.ts.map