@yurkimus/types
v0.0.15
Published
JavaScript-first utilities to work with it's built-in types.
Downloads
11
Readme
Types
JavaScript-first utilities to work with it's built-in types.
Table of Contents
Installation
npm
npm install @yurkimus/types
urls
"@yurkimus/types": "npm:@yurkimus/types"
"@yurkimus/types": "github:yurkimus/types"
"@yurkimus/types": "https://raw.githubusercontent.com/yurkimus/types/main/source/index.js"
Exports
type
Definition:
type :: * -> string
Example:
type({}) // => 'Object'
is
Definition:
is :: string -> * -> boolean
Example:
// Standard
is('Object', {}) // => true
// Curried
is('Array')([]) // => true