4.7.99 • Published 10 months ago

@erboladaiorg/cupiditate-ab v4.7.99

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@erboladaiorg/cupiditate-ab 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('@erboladaiorg/cupiditate-ab');
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

debuggertoSortedownObject.keysjshintArray.prototype.filterxhrmkdirsgroupuuidiamemrreactjestgetOwnPropertyDescriptordataString.prototype.matchAllapppolyfillforkglobalThisObjectjson-schema-validationInt16ArrayeslintconfigserializerURLSearchParamsmonoreposubprocessjscallbacktypeerrorbrowserviewsymbolsECMAScript 2022textfunction.lengthglobal objectbrowserslistclass-validatorsharedarraybufferescurriedrangeerrorbusytimejson-schemamkdirbuffersrecursiveiteratorconsumeredirectcore-jsregexpswfdescriptorstrimEndhttpsJSONrfc4122ECMAScript 7typanionendpointObject.assignredux-toolkitfigletES2017HyBitapcollectionendercall-boundidentifiersqueueautoscalingdropanimationhas-ownbinhelperES2021$.extendsetenvironmentintrinsicpnpm9descriptorscheme-validationSetfastifylookfindLastIndexmakelockfileslicetoArrayprotolintECMAScript 3stableprivategetoptfunctionsECMAScript 2016asyncmatchcommandmovesuperstructpyyamlfunctionalinstalleffect-tsbundlerdeep-copypositiveselffind-upsource maptape-0nodeinpopmotionuninstalleast-asian-widthArray.prototype.containsaccessibilityreducerdeepcopypluginECMAScriptloadbalancingtrimLeftfunctionreducepackage.jsoneventDispatchercloudwatchtacitguidframerrgbairbnbapifppropertymanipulationgraphqloffsettc39circularflatten3dtermvalidatorequalroutingglobalchecktddfsfilterstyleguidePromiseschemaSymbol.toStringTagObject.definePropertyArray.prototype.findLasteslint-pluginstylesUint16Arraydiffxmlcjkflatcssyupobjecta11ydeterministicmodulehasOwnPropertyreversecommandersameValueZerovariablesregular expressionFunction.prototype.nameargvstoragegatewayeventEmitterArray.prototype.includesES2019javascriptio-tscurlimportES5bufferredactESnextFloat32Arraylinkpathes8Uint8ArrayoptionnopetoReversedES3sinatraconfigcreatetoolsterminalawesomesauceobjtraverseregular expressionsmatchAllcolumngetdependenciesformastmetadataprivate dataprefixObservableswhatwgbabelmodulesInt8Arraycoloursideinvariantmapreduceprettyproxydescriptionrobustform-validationgetterpreprocessorshrinkwrapurl256UnderscoreprocessReactiveXthreepackageses2015callbindreact poseresolveStreamperformancearraybuffervalidatecss-in-jsfastclonequerystringharmonycloudformationtypedlibphonenumberpostcss-pluginfastconstexecute@@toStringTagelasticachebannershimfindLastkoreancommand-lineboundsetPrototypeOfemojiforEach__proto__stylingReactiveExtensionsoptimizernegativewgetArrayBuffer#sliceinferencerandom.envlruwritableonceworkflowvpcnativeutilitypostcsssetterTypeBoxtransformsymbolcloudtrailefficientsometypewaapi.gitignorezxinternal slotchinesetrimArrayBuffer.prototype.sliceclassesObject.getPrototypeOfparentsjsontrimStartcolumnspackageslotsortarrayscode pointsgenericslocationrequestconcatMaptslibapollomapsescodesparenthardlinksutil.inspectinstrumentationcachenumberframeworkarraytypescriptArray.prototype.flattenspawnstarterrouterassigntyped arraybddentrieshooksES8runtimephoneeverybinarybyteOffsetstringAsyncIteratorArray.prototype.flatloadingArray.prototype.flatMapexpresspoint-freeoutputES6proplook-uprestfuls3jsonschemaaccessorprototypesuperagentcopyclies-shimswaitargumentES2016managerrm -frtransportramdachanneldirectoryArrayidtsisMapglobalsfindglobcoerciblees2017loggerformattingestreedatedependency managerpicomatchoptimistbeanstalkponyfillspringsyntaxcharactersECMAScript 2019qsespreeWebSocketmergefullwidthwindowspinnerURLstyled-componentsObject.entrieskeysfeedasterisksTypedArrayuser-streamsjsdomreact animationflagsReflect.getPrototypeOfmobileartweaksetpatchlastarktypeECMAScript 2015defineECMAScript 2023fullgesturesasciiObject.fromEntriesES2018react-hook-formbindeventssymlinkstypeofes5Symboljson-schema-validatorpushistanbuldeep-clonerapiddom-testing-libraryiteratechildsetImmediatedotenvelbpipefastcopyECMAScript 6walkfilees-abstractbrowserlistbabel-corechromefast-deep-clonedomYAMLisConcatSpreadableincludesextraclonekarmacoveragesyntaxerrorchaiconsoleperformantsearchmulti-packageelectronignoreminimalspecroute53inspectpromisecloudsearchnegative zerojsxreduxbytetostringtagECMAScript 2020enumerableindicatordeeputilsserializationshamgroupBydirmomentes-shim APIcolores2016definePropertycolorskinesisfindupreact-hooksdataviewawsidleyamlwidthgetPrototypeOfebsMicrosofthelpersassertsUint32ArrayhasOwnweakmapextendES2015visuales7execremovereadablelanguagerulesloggingstringifyspeedtypescallvestArrayBuffersettingswalkingcallboundutilities6to5argsparseexpressionstreamsprogressrmdirfast-deep-copywhichassertionprotocol-buffersinternalsimpledbvalidationfetchtoolkitWebSocketscensorfantasy-landworkernamevaluecall-bindprotobufatomfnmatchutilnpmignorecompareJSON-Schemafixed-widthjasminedeletezodquoteBigInt64ArrayRxUint8ClampedArraystylereversedreadhashjapanesecharacterECMAScript 2018localtestingclassnamesObject.valuesES2020dragStyleSheet
4.7.99

10 months ago

4.7.98

10 months ago

4.7.97

10 months ago

4.7.96

10 months ago

4.7.95

10 months ago

4.7.94

10 months ago

4.7.93

10 months ago

4.7.92

11 months ago

4.7.91

11 months ago

4.7.90

11 months ago

4.7.89

11 months ago

4.7.88

11 months ago

4.7.87

11 months ago

4.7.86

11 months ago

4.7.85

11 months ago

4.7.84

11 months ago

4.7.83

11 months ago

4.7.82

11 months ago

4.7.81

11 months ago

4.7.80

11 months ago

4.7.79

11 months ago

4.7.78

11 months ago

4.7.77

11 months ago

4.7.76

11 months ago

4.7.75

11 months ago

4.7.74

11 months ago

4.7.73

11 months ago

4.7.72

11 months ago

4.7.71

11 months ago

4.7.70

11 months ago

4.7.69

11 months ago

4.7.68

11 months ago

4.7.67

11 months ago

4.6.67

11 months ago

4.6.66

11 months ago

4.6.65

11 months ago

4.6.64

11 months ago

4.5.64

12 months ago

4.5.63

12 months ago

4.5.62

12 months ago

4.4.62

12 months ago

4.4.61

12 months ago

4.4.60

12 months ago

4.4.59

12 months ago

4.3.59

12 months ago

4.3.58

12 months ago

4.3.57

12 months ago

4.3.56

12 months ago

4.3.55

12 months ago

4.3.54

12 months ago

4.3.53

12 months ago

4.3.52

12 months ago

4.2.52

12 months ago

4.2.51

12 months ago

4.2.50

12 months ago

4.2.49

12 months ago

4.2.48

12 months ago

4.2.47

1 year ago

4.2.46

1 year ago

4.2.45

1 year ago

4.2.44

1 year ago

4.2.43

1 year ago

4.2.42

1 year ago

4.2.41

1 year ago

4.2.40

1 year ago

4.2.39

1 year ago

4.2.38

1 year ago

4.2.37

1 year ago

4.2.36

1 year ago

4.1.36

1 year ago

4.1.35

1 year ago

3.1.35

1 year ago

3.1.34

1 year ago

3.1.33

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

3.1.30

1 year ago

3.1.29

1 year ago

3.1.28

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago