is-obj-prop
Does a JS type have a property
Last updated 2 years ago by dustinspecker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-obj-prop 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (2 years ago)

2 Versions

  • 2.0.0                                ...           2 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (5)

Copyright 2013 - present © cnpmjs.org | Home |