An open API service indexing awesome lists of open source software.

https://github.com/yurkimus/types

JavaScript-oriented type utilities
https://github.com/yurkimus/types

deno functional-programming javascript node utilities

Last synced: about 1 month ago
JSON representation

JavaScript-oriented type utilities

Awesome Lists containing this project

README

          

# Types

JavaScript-first utilities to work with it's built-in types.

## Table of Contents

- [Installation](#installation)
- [Exports](#exports)
- [type](#type)
- [is](#is)
- [License](#license)

## 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:

```javascript
type({}) // => 'Object'
```

### is

#### Definition:

```
is :: string -> * -> boolean
```

#### Example:

```javascript
/**
* Standard
*/
is('Object', {}) // => true

/**
* Curried
*/
is('Array')([]) // => true
```

## License

[MIT](LICENSE)