1.0.5 • Published 6 years ago

@strong-roots-capital/is-record v1.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

is-record Build status npm version codecov

Type-guard for Record

Install

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

Use

import isRecord from '@strong-roots-capital/is-record'

const object = fetchMysteryObject()
if (isRecord(object)) {
    console.log(object.Volume) // ok
} else {
    console.log(object.Volume) // potential error!
}

Related

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago