Skip to content

yurkimus/types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

License

MIT

Releases

No releases published

Packages

No packages published