Newborn Programming Monsters

    @strong-roots-capital/is-derived-record
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    is-derived-record Build status npm version codecov

    Type-guard for DerivedRecord

    Install

    npm install @strong-roots-capital/is-derived-record

    Use

    import isDerivedRecord from '@strong-roots-capital/is-derived-record'
     
    const object = fetchMysteryObject()
    if (isDerivedRecord(object)) {
        console.log(object.Close) // ok
    } else {
        console.log(object.Close) // potential error!
    }

    Related

    Install

    npm i @strong-roots-capital/is-derived-record

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    15.1 kB

    Total Files

    10

    Last publish

    Collaborators

    • amchelle
    • hamroctopus