package
Does a JS type's prototype have a property
npm install is-proto-propGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Does a JS type's prototype have a property
npm install --save is-proto-propimport isProtoProp from 'is-proto-prop';
isProtoProp('array', 'length');
// => true
isProtoProp('Error', 'ignore');
// => false
// `is-proto-props` can only verify native JS types
isProtoProp('gulp', 'task');
// => falseReturns a Boolean if propertyName is on type's prototype.
type: string
JS type to examine the prototype of. Note: is-proto-prop only looks at native JS types.
type: string
Property name to look for on type's prototype. Note: propertyName is case sensitive.
MIT © Dustin Specker
Estimated unpacked size across 3 packages.
26.0 kB
Includes dependencies.