UNPKG

codetrix

Version:

A lightweight lodash-style utility library

12 lines (11 loc) 267 B
/** * Checks if a number is a prime number. * * @param num The number to check. * @returns `true` if the number is prime, otherwise `false`. * * @example * isPrime(7); // true * isPrime(10); // false */ export declare function isPrime(num: number): boolean;