is-proto-prop
Does a JS type's prototype have a property
Uses Sindre Sorhus' proto-props
Install
npm install --save is-proto-prop
Usage
ES2015
; ;// => true ;// => false // `is-proto-props` can only verify native JS types;// => false
ES5
var isProtoProp = ; ;// => true ;// => false // `is-proto-props` can only verify native JS types;// => false
API
isProtoProp(type, propertyName)
Returns a Boolean
if propertyName
is on type
's prototype.
type
type: string
JS type to examine the prototype of. Note: is-proto-prop
only looks at native JS types.
propertyName
type: string
Property name to look for on type
's prototype. Note: propertyName
is case sensitive.
LICENSE
MIT © Dustin Specker