@lou.codes/predicates
Version:
🧐 Predicate util functions
14 lines (13 loc) • 301 B
JavaScript
import { isType } from "./isType.js";
/**
* `typeof` "bigint" alias.
*
* @category Primitives
* @example
* ```typescript
* isBigInt(1n); // true
* isBigInt(1); // false
* ```
* @returns `true` if the given value is a `bigint`, `false` otherwise.
*/
export const isBigInt = isType("bigint");