npm package: @ryniaubenpm/error-animi-similique
Description: [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]
Author: ryniaube
Latest version: 1.0.0

# @ryniaubenpm/error-animi-similique <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

> Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.

## Examples

```js
const isAccessorDescriptor = require('@ryniaubenpm/error-animi-similique');
const assert = require('assert');

const obj = {
	get foo() {},
	bar: { get: function() {} }
};

assert.equal(true, isAccessorDescriptor(obj, 'foo'));
assert.equal(false, isAccessorDescriptor(obj, 'bar'));

// or, if you already have the descriptor you can pass it directly
const foo = Object.getOwnPropertyDescriptor(obj, 'foo');
assert.equal(true, isAccessorDescriptor(foo));

const bar = Object.getOwnPropertyDescriptor(obj, 'bar');
assert.equal(false, isAccessorDescriptor(bar));
```

### Related projects

You might also be interested in these projects:

* [is-data-descriptor](https://www.npmjs.com/package/is-data-descriptor): Returns true if a value has the characteristics of a valid JavaScript data descriptor.
* [is-descriptor](https://www.npmjs.com/package/is-descriptor): Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… [more](https://github.com/inspect-js/is-descriptor)
* [is-object](https://www.npmjs.com/package/is-object): Returns true if the value is an object and not an array or null.

## Tests
Simply clone the repo, `npm install`, and run `npm test`

[package-url]: https://npmjs.org/package/@ryniaubenpm/error-animi-similique
[npm-version-svg]: https://versionbadg.es/inspect-js/@ryniaubenpm/error-animi-similique.svg
[deps-svg]: https://david-dm.org/inspect-js/@ryniaubenpm/error-animi-similique.svg
[deps-url]: https://david-dm.org/inspect-js/@ryniaubenpm/error-animi-similique
[dev-deps-svg]: https://david-dm.org/inspect-js/@ryniaubenpm/error-animi-similique/dev-status.svg
[dev-deps-url]: https://david-dm.org/inspect-js/@ryniaubenpm/error-animi-similique#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/@ryniaubenpm/error-animi-similique.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/@ryniaubenpm/error-animi-similique.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/@ryniaubenpm/error-animi-similique.svg
[downloads-url]: https://npm-stat.com/charts.html?package=@ryniaubenpm/error-animi-similique
[codecov-image]: https://codecov.io/gh/inspect-js/@ryniaubenpm/error-animi-similique/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/@ryniaubenpm/error-animi-similique/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/@ryniaubenpm/error-animi-similique
[actions-url]: https://github.com/ryniaubenpm/error-animi-similique/actions