@waksana/naive-function

function with signature

Usage no npm install needed!

<script type="module">
  import waksanaNaiveFunction from 'https://cdn.skypack.dev/@waksana/naive-function';
</script>

README

naive-function

function with signature

const {Num, Str} = require('chkr')
const func = require('@waksana/naive-function')

const numberToString = func(Num, Str, a => a.toString())

numberToString(12) //=> '12'
numberToString('abc') //throws error