typocomath/src/numbers/predicate.ts

5 lines
190 B
TypeScript
Raw Normal View History

2023-01-04 11:12:28 +00:00
import type {Signature} from '../interfaces/type.js'
2022-12-23 12:52:56 +00:00
2023-01-04 11:12:28 +00:00
export const isReal: Signature<'isReal', number> = (a) => true
export const isSquare: Signature<'isSquare', number> = (a) => a >= 0