@jeffmcmahan/type

Simple cross-engine type checker

Usage no npm install needed!

<script type="module">
  import jeffmcmahanType from 'https://cdn.skypack.dev/@jeffmcmahan/type';
</script>

README

Type

Example

import {type} from 'jeffmcmahan/type'

const foo = (id, name, data) => {

    type (id) (Number)
    type (name) (String)
    type (data) (Object, null)

    // ...
}