typocomath/src/numbers/predicate.ts

5 lines
181 B
TypeScript
Raw Normal View History

2022-12-23 12:52:56 +00:00
import type { FnIsReal, FnIsSquare } from "../interfaces/arithmetic"
export const isReal: FnIsReal<number> = (a) => true
export const isSquare: FnIsSquare<number> = (a) => a >= 0