typocomath/src/numbers/predicate.ts

5 lines
183 B
TypeScript
Raw Normal View History

import type { IsRealOp, IsSquareOp } from '../interfaces/predicate.js'
2022-12-23 12:52:56 +00:00
export const isReal: IsRealOp<number> = (a) => true
export const isSquare: IsSquareOp<number> = (a) => a >= 0