Skip to content

Commit

Permalink
Adjust readme
Browse files Browse the repository at this point in the history
  • Loading branch information
yurkimus committed Jul 27, 2024
1 parent 1ca401e commit ee1d64d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ isLike('Function', { call: 'me' }) // => false

### Error Handling

The `isLike` function throws a `TypeError` if the check for the provided interface is not implemented.
The `isLike` function throws a [TypeError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) if the check for the provided interface is not implemented.

## Functions

### `type(value)`
### `type`

Gets the type of a value as a string.w

Expand All @@ -52,7 +52,7 @@ type(async () => {}) // => 'AsyncFunction'
type(new URLSearchParams()) // => 'URLSearchParams'
```

### `is(string, value)`
### `is`

Compares the provided type with the type of the provided value.

Expand All @@ -73,7 +73,7 @@ is('Null', null) // => true
is('Object', []) // => false
```

### `isLike(string, value)`
### `isLike`

Tests if the provided value satisfies the provided interface.

Expand Down

0 comments on commit ee1d64d

Please sign in to comment.