Package Exports
- is-get-set-prop
- is-get-set-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-get-set-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-get-set-prop
Does a JS type have a getter/setter property
Install
npm install --save is-get-set-prop
Usage
ES2015
import isGetSetProp from 'is-get-set-prop';
isGetSetProp('array', 'length');
// => true
isGetSetProp('ARRAY', 'push');
// => false
// is-get-set-prop can only verify native JS types
isGetSetProp('gulp', 'task');
// => false;
API
isGetSetProp(type, propertyName)
type
Type: string
A native JS type to examine. Note: is-get-set-prop
can only verify native JS types.
propertyName
Type: string
Property name to determine if a getter/setter of type
.
LICENSE
MIT © Dustin Specker