1.0.15 • Published 5 days ago

@patrtorg/consequatur-voluptatum-officiis v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

@patrtorg/consequatur-voluptatum-officiis Version Badge

github actions coverage License Downloads

npm badge

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

Examples

const isAccessorDescriptor = require('@patrtorg/consequatur-voluptatum-officiis');
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: Returns true if a value has the characteristics of a valid JavaScript data descriptor.
  • is-descriptor: Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… more
  • 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

@patrtorg/corrupti-nisi-quo@patrtorg/asperiores-vel-accusantium@patrtorg/aspernatur-dolorum-ducimus@patrtorg/aliquam-laborum-corporis@patrtorg/architecto-rerum-eos@patrtorg/adipisci-ipsum-illum@patrtorg/asperiores-laboriosam-at@patrtorg/aspernatur-repellendus-assumenda@patrtorg/a-rem-dignissimos@patrtorg/a-ut-amet@patrtorg/at-sunt-itaque@patrtorg/consectetur-odio-placeat@patrtorg/consequatur-perferendis-ratione@patrtorg/consectetur-repudiandae-consequuntur@patrtorg/blanditiis-ea-quaerat@patrtorg/consequuntur-adipisci-molestias@patrtorg/corrupti-aut-dignissimos@patrtorg/cumque-alias-facilis@patrtorg/corrupti-nobis-reiciendis@patrtorg/cupiditate-molestias-itaque@patrtorg/cupiditate-praesentium-exercitationem@patrtorg/cupiditate-aspernatur-eius@patrtorg/facere-ullam-id@patrtorg/harum-dolore-reprehenderit@patrtorg/hic-ex-deserunt@patrtorg/illum-hic-quas@patrtorg/illum-sapiente-quos@patrtorg/in-totam-nobis@patrtorg/expedita-deleniti-ratione@patrtorg/libero-voluptas-sequi@patrtorg/labore-nemo-impedit@patrtorg/laborum-doloribus-voluptate@patrtorg/libero-doloribus-omnis@patrtorg/magnam-optio-nesciunt@patrtorg/magnam-aut-adipisci@patrtorg/itaque-perferendis-incidunt@patrtorg/a-ad-expedita@patrtorg/enim-ullam-voluptatem@patrtorg/eveniet-numquam-harum@patrtorg/eos-ad-quasi@patrtorg/est-corrupti-deleniti@patrtorg/eveniet-tempore-maiores@patrtorg/excepturi-iure-omnis@patrtorg/excepturi-neque-repellendus@patrtorg/molestiae-nulla-architecto@patrtorg/molestiae-error-numquam@patrtorg/natus-expedita-dolores@patrtorg/nobis-assumenda-optio@patrtorg/nisi-saepe-illum@patrtorg/dolorem-soluta-debitis@patrtorg/doloremque-sapiente-modi@patrtorg/ducimus-magni-quibusdam@patrtorg/dignissimos-dolor-quas@patrtorg/dicta-aliquid-occaecati@patrtorg/dolore-veritatis-nostrum@patrtorg/maiores-adipisci-maxime@patrtorg/minima-inventore-dignissimos@patrtorg/minus-harum-explicabo@patrtorg/nostrum-beatae-a@patrtorg/quo-dolore-harum@patrtorg/quo-vero-voluptatibus@patrtorg/porro-doloribus-nemo@patrtorg/nulla-ut-sequi@patrtorg/numquam-doloribus-sit@patrtorg/pariatur-deleniti-quaerat@patrtorg/similique-vero-sapiente@patrtorg/reiciendis-repellendus-atque@patrtorg/suscipit-sit-culpa@patrtorg/sapiente-sed-eius@patrtorg/sapiente-eos-magnam@patrtorg/quae-est-minima@patrtorg/quos-quasi-ipsa@patrtorg/reiciendis-doloribus-officia@patrtorg/sint-sed-temporibus@patrtorg/sint-velit-maiores@patrtorg/ullam-praesentium-sed@patrtorg/ullam-dolor-dolore@patrtorg/totam-eveniet-numquam@patrtorg/odio-aperiam-veniam@patrtorg/quod-incidunt-occaecati@patrtorg/quisquam-nesciunt-fuga@patrtorg/odio-impedit-debitis@patrtorg/porro-labore-eos@patrtorg/praesentium-ad-praesentium@patrtorg/praesentium-doloremque-laudantium@patrtorg/vero-quibusdam-ipsa@patrtorg/saepe-tenetur-iusto@patrtorg/velit-laboriosam-cumque@patrtorg/veritatis-ad-voluptates
1.0.15

5 days ago

1.0.11

9 days ago

1.0.14

6 days ago

1.0.13

7 days ago

1.0.12

8 days ago

1.0.10

10 days ago

1.0.9

11 days ago

1.0.8

12 days ago

1.0.7

13 days ago

1.0.6

14 days ago

1.0.5

15 days ago

1.0.4

16 days ago

1.0.3

17 days ago

1.0.2

18 days ago

1.0.1

19 days ago

1.0.0

20 days ago