4.7.99 • Published 1 year ago

@erboladaiorg/cupiditate-ab v4.7.99

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

1 year ago

4.7.98

1 year ago

4.7.97

1 year ago

4.7.96

1 year ago

4.7.95

1 year ago

4.7.94

1 year ago

4.7.93

1 year ago

4.7.92

1 year ago

4.7.91

1 year ago

4.7.90

1 year ago

4.7.89

1 year ago

4.7.88

1 year ago

4.7.87

1 year ago

4.7.86

1 year ago

4.7.85

1 year ago

4.7.84

1 year ago

4.7.83

1 year ago

4.7.82

1 year ago

4.7.81

1 year ago

4.7.80

1 year ago

4.7.79

1 year ago

4.7.78

1 year ago

4.7.77

1 year ago

4.7.76

1 year ago

4.7.75

1 year ago

4.7.74

1 year ago

4.7.73

1 year ago

4.7.72

1 year ago

4.7.71

1 year ago

4.7.70

1 year ago

4.7.69

1 year ago

4.7.68

1 year ago

4.7.67

1 year ago

4.6.67

1 year ago

4.6.66

1 year ago

4.6.65

1 year ago

4.6.64

1 year ago

4.5.64

1 year ago

4.5.63

1 year ago

4.5.62

1 year ago

4.4.62

1 year ago

4.4.61

1 year ago

4.4.60

1 year ago

4.4.59

1 year ago

4.3.59

1 year ago

4.3.58

1 year ago

4.3.57

1 year ago

4.3.56

1 year ago

4.3.55

1 year ago

4.3.54

1 year ago

4.3.53

1 year ago

4.3.52

1 year ago

4.2.52

1 year ago

4.2.51

1 year ago

4.2.50

1 year ago

4.2.49

1 year ago

4.2.48

1 year 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