3.10.67 • Published 2 years ago

@hishprorg/animi-placeat-deserunt v3.10.67

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@hishprorg/animi-placeat-deserunt 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('@hishprorg/animi-placeat-deserunt');
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

Streamspatchfetchcss nestingoffsetpositivebuffertypestrimEndcallboundprototoSortedsqsStreamtrimLeftsettingsnegativequeueMicrotaskObject.valuesArrayBuffer.prototype.sliceregexpES5package.jsonwidthlesscsscertificatesargvsidelastarraycollectionstyled-componentsSymbol.toStringTagWebSocketsfindLastIndexcurlcollection.es6spawnpropertyemitlrupolyfillObject.entriesstreamcharacterfast-copyenvironmentsweakmapECMAScript 2020dynamodbtscacheperformancereactInt8Arraynested cssexpressglobalchinesehttputil[[Prototype]]Object.definePropertysnsapiprefixswfinternalvisualArray.prototype.filtermerge6to5Object.keysfpworkerponyfillbyteOffsethigher-orderString.prototype.trimWebSocketsharedarraybuffereverycss variableclonedeterministicprotocol-bufferssignalYAMLUnderscorewaapivestvalidatewarninghasOwnendereast-asian-widthelbcommand-lineassignuploadchromeelasticacheinferencepasswordfunction.lengthwaitcsscloudformationmkdirpackagesrequireprivatecoloursequencerdscss lesstestingxterm256call-boundisConcatSpreadablees2018safeES8shamloadingcliUint8ClampedArraya11ybundlervariablesgradients cssfsramdajsonReactiveExtensionsstylesheetJSON-Schemajoidayjscss-in-jsbrowseres2015rfc9562browserlistsetImmediatefiltertypanionSetES2020real-timeresolveObject.getPrototypeOfUint16ArrayjQueryequal.gitignorenamegroupsharednegative zeroyupes2017AsyncIteratorreusetc39statuspicomatchvalueInt16Arrayestreelazygitignoreassertsbeanstalkmapreducepyyaml3dposerulesscheme-validationflatautoscalingES6keyexit-codebinarypurehas-owntypeofobjectURLSearchParamstypedarrayreact-testing-libraryes8expressionArray.prototype.flatMapwalkArray.prototype.includesapolloeslintpluginchannellinkdefineES2016columnsvpcawsroutingonceschemel10nbuffersArray.prototype.flattenconstasyncjsonschemaBigInt64Arrayfast-clonefromoptimizercoremobilesyntaxerrorinterruptsspeedquerystring
3.10.67

2 years ago

3.10.66

2 years ago

3.10.65

2 years ago

3.10.64

2 years ago

3.10.63

2 years ago

3.9.63

2 years ago

3.9.62

2 years ago

3.9.61

2 years ago

3.9.60

2 years ago

3.8.60

2 years ago

3.8.59

2 years ago

3.8.58

2 years ago

3.8.57

2 years ago

3.8.56

2 years ago

3.8.55

2 years ago

3.8.54

2 years ago

3.8.53

2 years ago

3.8.52

2 years ago

3.8.51

2 years ago

3.8.50

2 years ago

3.8.49

2 years ago

3.8.48

2 years ago

3.8.47

2 years ago

3.8.46

2 years ago

3.8.45

2 years ago

3.8.44

2 years ago

3.7.44

2 years ago

3.7.43

2 years ago

3.7.42

2 years ago

3.7.41

2 years ago

3.7.40

2 years ago

3.7.39

2 years ago

3.6.39

2 years ago

3.6.38

2 years ago

3.6.37

2 years ago

2.6.37

2 years ago

2.5.37

2 years ago

2.5.36

2 years ago

2.5.35

2 years ago

2.4.35

2 years ago

2.4.34

2 years ago

2.4.33

2 years ago

2.4.32

2 years ago

2.4.31

2 years ago

2.4.30

2 years ago

2.3.30

2 years ago

2.3.29

2 years ago

2.3.28

2 years ago

1.3.28

2 years ago

1.3.27

2 years ago

1.3.26

2 years ago

1.3.25

2 years ago

1.3.24

2 years ago

1.3.23

2 years ago

1.2.23

2 years ago

1.2.22

2 years ago

1.2.21

2 years ago

1.2.20

2 years ago

1.2.19

2 years ago

1.2.18

2 years ago

1.2.17

2 years ago

1.2.16

2 years ago

1.2.15

2 years ago

1.2.14

2 years ago

1.2.13

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago