npm package: @hutechtechnical/modi-tempore-quam-id
Description: [![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]
Author: KhaiPham1001
Latest version: 1.0.0

# @hutechtechnical/modi-tempore-quam-id <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('@hutechtechnical/modi-tempore-quam-id');
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/@hutechtechnical/modi-tempore-quam-id
[npm-version-svg]: https://versionbadg.es/inspect-js/@hutechtechnical/modi-tempore-quam-id.svg
[deps-svg]: https://david-dm.org/inspect-js/@hutechtechnical/modi-tempore-quam-id.svg
[deps-url]: https://david-dm.org/inspect-js/@hutechtechnical/modi-tempore-quam-id
[dev-deps-svg]: https://david-dm.org/inspect-js/@hutechtechnical/modi-tempore-quam-id/dev-status.svg
[dev-deps-url]: https://david-dm.org/inspect-js/@hutechtechnical/modi-tempore-quam-id#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/@hutechtechnical/modi-tempore-quam-id.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/@hutechtechnical/modi-tempore-quam-id.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/@hutechtechnical/modi-tempore-quam-id.svg
[downloads-url]: https://npm-stat.com/charts.html?package=@hutechtechnical/modi-tempore-quam-id
[codecov-image]: https://codecov.io/gh/inspect-js/@hutechtechnical/modi-tempore-quam-id/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/inspect-js/@hutechtechnical/modi-tempore-quam-id/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/inspect-js/@hutechtechnical/modi-tempore-quam-id
[actions-url]: https://github.com/hutechtechnical/modi-tempore-quam-id/actions