is-accessor-descriptor
Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.
Please consider following this project's author, Jon Schlinkert, and consider starring the project to show your ❤️ and support.
Install
Install with npm:
Usage
You may also pass an object and property name to check if the property is an accessor:
Examples
false
when not an object
true
when the object has valid properties
and the properties all have the correct JavaScript types:
false
when the object has invalid properties
false
when an accessor is not a function
false
when a value is not the correct type
About
Related projects
You might also be interested in these projects:
is-accessor-descriptor: Returns true if a value has the characteristics of a valid JavaScript accessor descriptor. | homepage
is-data-descriptor: Returns true if a value has the characteristics of a valid JavaScript data descriptor. | homepage
is-descriptor: Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… more | homepage
is-plain-object: Returns true if an object was created by the
Object
constructor. | homepage
Contributors
Commits | Contributor |
22 | |
2 |
Author
Jon Schlinkert
License
Copyright © 2017, Jon Schlinkert. Released under the MIT License.
This file was generated by verb-generate-readme, v0.6.0, on November 01, 2017.
Last updated