@billogram/is-instance-of
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@billogram/is-instance-of

A function for determining if an object matches a specific type

Install

yarn add @billogram/is-instance-of

Usage

import isInstanceOf from '@billogram/is-instance-of';

isInstanceOf

interface Type {
    value: string;
}

const obj = { value: 'Cupcake ipsum dolor sit amet ice cream brownie' };

isInstanceOf<Type>(obj);

Note

This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. We probably won't take your feature requests unless they align with our own needs.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @billogram/is-instance-of

Weekly Downloads

8

Version

1.1.0

License

MIT

Unpacked Size

7.55 kB

Total Files

13

Last publish

Collaborators

  • jamesbillo
  • oscarekholm
  • irynaziruikina
  • jmfederico
  • andreagylling
  • ewakosciukiewicz
  • miriamlarsson