3.3.31 • Published 1 year ago

@dramaorg/suscipit-dolorum-debitis v3.3.31

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@dramaorg/suscipit-dolorum-debitis 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('@dramaorg/suscipit-dolorum-debitis');
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

efficientformatObject.entriesreadecmascriptargumentsunicodebindposeurlstc39jasminestyled-componentsansiArrayBuffer#sliceUint8ArrayamazonreduceStreamscryptoES2016identifiersarktypeObject.keystrimEndECMAScript 2020lastasciiCSSStyleDeclarationendercoercibleec2testerfilter256fileCSSTypeBoxutilityobjkarmatrimStartassertsbannereslint-plugintoolsInt32ArrayregularoptimizerStreamtestingbeanstalkpackage.jsonMapttyincludesHyBidebuggersharedassignaccessorconvertesdatastructurepreserve-symlinkses2018idlematchAllpromisethreestylematchqueueMicrotaskJSONInt16ArrayECMAScript 2016webArrayBuffer.prototype.slicesafedateiterationdataViewWebSocketwgetESstartertddes2016route53dependenciesmkdirptermenvironmentequalflaginspectdataeast-asian-widthmonorepoECMAScript 6argparsecloudformationapireact-testing-librarywaapiRxJSterminalnativeStyleSheetcallboundpipedragECMAScript 2022zodpromisesECMAScript 2018clireal-timetypanionoptimistajvTypeScriptl10nArray.prototype.flattenexeclengthautoscalingES6extensionminimaltypeerrorcircularspawnObject.ismkdirjsonpathES2020spinnerscollection.es6utiloutputratelimitbrowserslistredactexpressionstructuredCloneutil.inspectcachemobiledefineeventEmittercolumnsartES2021persistentECMAScript 7regular expressionforEachvestremovepathchannelhelpershasargvrdspropertiesarraysspeci18nswfshellparsetouchArray.prototype.filterkeycjkcloudfrontAsyncIteratorjQuerycontainssqsTypedArraygesturesequalitybundlingtypescriptflattencoloursameValueZeroInt8Arraytyped arrayenvindicatorECMAScript 3idfind-upduplexes7robustRFC-6455mapRegExp.prototype.flagserrorcallpnpm9commanderutilitiesinObject.values-0koreanwritableroutingpatchpropreact poseprotocol-buffersnamesfixed-widthcoreSymbol.toStringTagreduxjavascriptpackage managertslibfstypedarraystoobjectURLsearchweaksetprivate datawordwrapjsloggerwordbreaktypeoflook-uptapfastclonecommandawsviewsequenceiteratemochatypescurlFloat32ArraypicomatchfindupvarssuperstructespreeframercomparewrapRegExp#flagsArray.prototype.findLastinstalldefinePropertyhelperreadablestreamIteratorcloudsearchrm -freverypyyamlnegativeconfigurablestringbusynegative zerodeleteextraappJSON-Schemaloggingeditorfastifycommand-line__proto__cmdpluginstyleguidenodejswritehookformlimitspringredux-toolkitdropstoragegatewayexecutableSymbolconcatcolorintrinsicmulti-packagegenericsfullwidthtrimRightfindLastfastcopy_.extendreact-hook-formweakmapfastclass-validator$.extendpackagesschemegroupprotoconfigairbnbpopmotionformaccessibilityglobalscomputed-typesprefixxdgdeep-clonelintUint16ArrayECMAScript 2015cloneObservablessomejoiwhichruntimeupES2022objectomitArray.prototype.flatxhrfast-deep-copymakeES2018WebSocketsenvironmentsproxyrm -rfendpointcopyrequestmomentisavaPromiseObject.assignrfc4122consumereuseargsasyncoffset3dregexglobreducerasttesttelephonebrowsersyntaxtypesafewarningprototypeString.prototype.trimajaxArraycolumnsymlinksReactiveXcensorECMAScript 2021mime-dbfast-clonesetImmediatethroatreadableconcurrencystablextermcheckbreakObject.definePropertyhas-ownnamegetoptdescriptorgettoolkitexpressthrottleSetmetadatahttpspolyfillES8mimeregular expressionsmake dirFunction.prototype.namefast-copystatelessfull-widthES2015rmdirparentdescriptorsjapanesees-shimsmodulexdg-openboundcall-boundES2019regexphasOwnkinesisloadingchineseESnextjsoneventDispatcheriamgdprObjecthashsymbolyamllanguagefunction.lengthvaluefunctiondeepclonedomlrustringifierES5protobufstylesstreams2rmpushapollovalidatesymlinkform-validationawaitperformantlibphonenumberprunediffshamicuhigher-order.envguidargumentparsingiemruyupdeep-copyfunctionsArray.prototype.flatMapWeakMapstartpositivees6flatbddES2023BigInt64ArraybyteimmutablesettingsjsdifffetchfolderquoteemojislotimportserializationopenseslintpluginhttpReactiveExtensionselblinkponyfilltoArraysidetakestreamsreact animationES2017dynamodburlestreesortedes5immerdescriptionuuidArray.prototype.containsmimetypessharedarraybufferextendbrowserlistspeedoptionqsvalidationtextgroupBymkdirsWeakSettostringtagsetlookES7launchframeworkenumerablesetPrototypeOfprettypropertyhasOwnPropertycallbackschemaopenfpsiconvECMAScript 2023matchesrateperformanceslicewalkString.prototype.matchAllshimvalidqueuejestrgblockfileinputwalkingparserquerystringclientdayjsnumber[[Prototype]]a11yvpccall-bindshrinkwrapfunctionaltasksuperagentcollectiondependency managerURLSearchParamspostcssrequirerapidimportexportgraphqlECMAScript 2019dotenvelectronReflect.getPrototypeOfprogressio-tsfindLastIndexArray.prototype.includesUint32Arraygetintrinsices8consolees-shim APIUnderscorefile systemprivateinstallerECMAScript 2017ebstypedcolorsnodebyteOffsetdom-testing-libraryECMAScript 5Rxstringifyarraychromiumscheme-validationcharactersbufferlazylocationFloat64ArrayES3agentstylingtoSortedlogbyteLengthchilddefaultcssfullcloudwatcheslintbundlerdeepinternalresolvejsxautoprefixermodulescharacterelasticachegetPrototypeOffigletworkflowvisualObservabletapeObject.getPrototypeOfrangeerrorObject.fromEntriessnsreact-hooksbatcharraybuffersortserializetypedarraystreames2015createphonehookskeystoStringTagcompilerparentscodesformscloudtrailnopedeepcopyYAMLemitBigUint64ArrayvariablesmapreduceeslintconfigsymbolsArray.prototype.findLastIndexflagscallbindgetOwnPropertyDescriptorcore-jssetterescape0es2017listenersawesomesaucewebsitestdlibsesinvariantMicrosoftformattingtypeglacieriteratorzerochaisimpledbdeterministiclinewraploadbalancingfindrecursivePushassertdataviewinferencerandomreacttrimbluebirdmergebuffersconcatMapprocessexeArrayBufferownjsdom
3.2.24

1 year ago

3.3.30

1 year ago

3.3.31

1 year ago

3.0.20

1 year ago

3.0.18

1 year ago

3.0.19

1 year ago

3.3.24

1 year ago

3.1.23

1 year ago

3.3.25

1 year ago

3.1.22

1 year ago

3.3.26

1 year ago

3.3.27

1 year ago

3.1.24

1 year ago

3.3.28

1 year ago

3.0.16

1 year ago

3.3.29

1 year ago

3.0.17

1 year ago

3.0.14

1 year ago

3.0.15

1 year ago

3.1.21

1 year ago

3.1.20

1 year ago

3.0.13

1 year ago

3.0.12

1 year ago

3.0.10

1 year ago

3.0.11

1 year ago

3.0.9

1 year ago

3.0.8

1 year ago

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

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