nanomath/src/number/type.js

7 lines
149 B
JavaScript
Raw Normal View History

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