@billogram/is-instance-of
v1.1.0
Published
> A function for determining if an object matches a specific type
Downloads
12
Keywords
Readme
@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