nanomath/src/number/utils.js
Glen Whitney 47370cec9e feat: Index behaviors by return typing strategy
* Adds the concept of, and options for, the return typing strategy
  * adds the strategy at the beginning of every behavior index
  * adds the strategy as an additional argument to resolve
  * No actual use of return type strategy so far
  * Sets up eslint
  * Fixes eslint errors
2025-04-26 00:20:30 -07:00

7 lines
214 B
JavaScript

import {plain, boolnum} from './helpers.js'
import {NumberT} from './NumberT.js'
import {match} from '#core/TypePatterns.js'
export const clone = plain(a => a)
export const isnan = match(NumberT, boolnum(isNaN))