nanomath/src/number/type.js

6 lines
149 B
JavaScript

export const number = {
test: n => typeof n === 'number'
}
export plain = f =>
[Array(f.length).fill(number), {returns: number, behavior: f}]