JSPM

is-obj-prop

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 466940
  • Score
    100M100P100Q178075F
  • License MIT

Does a JS type have a property

Package Exports

  • is-obj-prop
  • is-obj-prop/src/index.js

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 (is-obj-prop) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

is-obj-prop

NPM version Coverage Status Code Climate

Does a JS type have a property

Install

npm install --save is-obj-prop

Usage

ES2015

import isObjProp from 'is-obj-prop';

isObjProp('array', 'length');
// => true

isObjProp('ARRAY', 'push');
// => false

// is-obj-prop can only verify native JS types
isObjProp('gulp', 'task');
// => false;

API

isObjProp(type, propertyName)

type

Type: string

A native JS type to examine. Note: is-obj-prop can only verify native JS types.

propertyName

Type: string

Property name to determine if a property of type.

LICENSE

MIT © Dustin Specker