Not Providing Milkshakes

    @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

    Keywords

    none

    Install

    npm i @billogram/is-instance-of

    DownloadsWeekly Downloads

    85

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    7.55 kB

    Total Files

    13

    Last publish

    Collaborators

    • patrik-at-billo
    • oscarekholm
    • irynaziruikina
    • jmfederico
    • andreagylling
    • ewakosciukiewicz
    • miriamlarsson
    • choddan