4.7.99 • Published 2 years ago

@erboladaiorg/cupiditate-ab v4.7.99

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

4.7.98

2 years ago

4.7.97

2 years ago

4.7.96

2 years ago

4.7.95

2 years ago

4.7.94

2 years ago

4.7.93

2 years ago

4.7.92

2 years ago

4.7.91

2 years ago

4.7.90

2 years ago

4.7.89

2 years ago

4.7.88

2 years ago

4.7.87

2 years ago

4.7.86

2 years ago

4.7.85

2 years ago

4.7.84

2 years ago

4.7.83

2 years ago

4.7.82

2 years ago

4.7.81

2 years ago

4.7.80

2 years ago

4.7.79

2 years ago

4.7.78

2 years ago

4.7.77

2 years ago

4.7.76

2 years ago

4.7.75

2 years ago

4.7.74

2 years ago

4.7.73

2 years ago

4.7.72

2 years ago

4.7.71

2 years ago

4.7.70

2 years ago

4.7.69

2 years ago

4.7.68

2 years ago

4.7.67

2 years ago

4.6.67

2 years ago

4.6.66

2 years ago

4.6.65

2 years ago

4.6.64

2 years ago

4.5.64

2 years ago

4.5.63

2 years ago

4.5.62

2 years ago

4.4.62

2 years ago

4.4.61

2 years ago

4.4.60

2 years ago

4.4.59

2 years ago

4.3.59

2 years ago

4.3.58

2 years ago

4.3.57

2 years ago

4.3.56

2 years ago

4.3.55

2 years ago

4.3.54

2 years ago

4.3.53

2 years ago

4.3.52

2 years ago

4.2.52

2 years ago

4.2.51

2 years ago

4.2.50

2 years ago

4.2.49

2 years ago

4.2.48

2 years ago

4.2.47

2 years ago

4.2.46

2 years ago

4.2.45

2 years ago

4.2.44

2 years ago

4.2.43

2 years ago

4.2.42

2 years ago

4.2.41

2 years ago

4.2.40

2 years ago

4.2.39

2 years ago

4.2.38

2 years ago

4.2.37

2 years ago

4.2.36

2 years ago

4.1.36

2 years ago

4.1.35

2 years ago

3.1.35

2 years ago

3.1.34

2 years ago

3.1.33

2 years ago

3.1.32

2 years ago

3.1.31

2 years ago

3.1.30

2 years ago

3.1.29

2 years ago

3.1.28

2 years ago

2.1.28

2 years ago

2.1.27

2 years ago

2.1.26

2 years ago

2.1.25

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.1.15

2 years ago

2.1.14

2 years ago

2.1.13

2 years ago

2.1.12

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

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