JSPM

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

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q25136F
  • License ISC

Type-guard for DerivedRecord

Package Exports

  • @strong-roots-capital/is-derived-record

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@strong-roots-capital/is-derived-record) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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!
}