2.2.10 • Published 7 days ago

@dramaorg/est-impedit-quo v2.2.10

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

@dramaorg/est-impedit-quo 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/est-impedit-quo');
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

appeslint-pluginprotocol-buffersgroupByloadbalancingwebsitechromiumkeycensorECMAScript 5picomatchbindparentsjasmineansiredactprotoutil.inspecticuomitquerystringconsumequoteArrayBuffer.prototype.sliceESpropertiesstyleguideweakmapforkshellapollochannelprefixstable__proto__datereactcommand-lineeslintconfigspinnerfastcopyUnderscorelastextracoverageReactiveExtensionsshamtraverseshebangiampropemitsyntaxerrorrmdirmruisConcatSpreadableiteration_.extendlookRegExp#flagseslintwhichmapreduceagentes-shim APIfilegraphql-clientutilitymonorepoframertakeenvironmentcachecloudwatcheventsfasttrimLeftoutputio-tsextensionratelimitjeststartercolumnsmovereadablefastifymulti-packagecallbindECMAScript 2020ECMAScript 2022JSON-Schemaopenercheckstreampackage managerthrottleobjectajvfastclonelimitObject.keysaccessorsuperagentec2Array.prototype.includeserrorespreea11yvisuallimited@@toStringTagfast-deep-copyhas-ownidhasOwnmodulesbusygetoptpreserve-symlinksregular expressioniscollectionlockfilevestArray.prototype.filteres7pyyamlautoprefixeres-abstractistanbulTypeScriptwalkinglistenerses5ArrayBufferaccessibilitytelephonecode pointsjsonpopmotiontextruntimeECMAScript 2019hooksESnextpackage.jsonpropertywhatwgAsyncIteratorasciijoipackagesrgbstdlibcharsetfast-deep-clonees2017varsdeterministicObject.valuestermspecdropbinaryshimcodesestreesqscss-in-jsstringifiercharactereditorelbwordwrapbinariescolumnindicatorcallmatchdeep-copycollection.es6CSSStyleDeclarationdefineargumentsexpressdeleteloadingfigletescapehttppipeECMAScript 2017ES3clisymbolreducertypedarrayInt16ArrayemojigetOwnPropertyDescriptorconfigurableArray.prototype.containsautoscalingxtermnodejsFunction.prototype.namestatelessreact-hooksBigInt64ArraymimetypesurluprequiretypeerrorSetgenericses6testerhasOwnPropertyPushwritables3redux-toolkitvalidationdataView.envspinnersecmascriptremoveObject.getPrototypeOfinternalStreamES2021cloneexeHyBicommandrecursiveidentifiersenumerablecall-bind$.extendrandomUint32Arraybundlinges8StyleSheetpushassertes2015requestserializerargsefficientiteratorURLSearchParamsjshintmochafunctionES2017boundprogressoptimizergesturesoptimistpositiveSymbol.toStringTagiconvawesomesaucewordbreakdebuggermkdirsartendpointprototypeform-validationratedefaultdataviewtc39ES5Array.prototype.flatmake dirES2020TypeBoxsetES6privatejsximportclass-validatorrouteexecutespawnroute53assertsString.prototype.trimbeanstalkfromserializationYAMLbyteLengthterminalstreams2postcss-pluginpatchswfdescriptordescriptiontypedarraysargumentECMAScript 7Mappackagefast-cloneString.prototype.matchAlleventDispatcherspringcoloursyntaxconfignativetslibbannerflatMapspeedelasticachetoolsdefinePropertyObject.entriestyped arraywalkgetPrototypeOfrobustreadstylesqueuemimetypeoffsbatchfunctionalunicodecloudfrontbrowserslisthelperdescriptorsnameimmermkdirpObject.defineProperty256Object.assignstoragegatewaygetintrinsicES7eventEmittermatchAllchaivaluesidlerfc4122ES2015colorsetterconvertduplexfinddirsettings3dlaunchassertionnodestringifyWeakSetwriteObject.isequalitytrimRightreact posereact animationcharactersRxJSsetPrototypeOfloginferenceoffsetcontainslinewrapfunctionssubprocessvpcvalidatefolderkinesispnpm9proxyentriescoercibleArray.prototype.findLastIndexObject.fromEntriestypesafesymbolsWeakMapfile systemurlsinputviewjsonpathincludesairbnbinternal slotnumbersymlinksSymbolclientlook-upfetchamazonconcatMapObservablestyling-0xhrfull-widthcommandermomentObject[[Prototype]]ECMAScript 2021optionbrowserlistUint8Arrayexpressionimmutablewaapimergetypedfast-copycmdsearchBigUint64ArrayfullwidthcallbounduninstalltrimEndinvarianthttpsassigntimeinguidregular expressionsconcatdependenciesslottypesbyteOffsettrimStartReactiveXmapexecownieparentdom-testing-libraryreadablestreamyamllruloggerkarmaformprotobuffindupanimationarraysinstallerstructuredClonereact-testing-libraryuuidtaskawstoSortedtypecall-boundregexppersistenttypanionArray.prototype.flatMapmodulenegativetoolkitvaluesidemobileresolveWebSocketshelpersObservablestestingesWebSocketstyled-componentsforEachequalawaitcjkreact-hook-formhashregularvariablestoobjectsuperstructES2019cloudtrailbufferRxlocationxdg-openjsdifftapworkspace:*colorsIteratortoArrayschemeglobalsES2018jses-shimsgraphqltsserializefilterhaswidthwaitsharedarraybufferschemaflattendeeptapecloudsearchbreakES2022bddsnsbundlerfind-upprivate dataparserangeerrorredirectwgetajaxUint8ClampedArrayjavascriptECMAScript 2015i18nECMAScript 2016postcssphoneexecfileworkersameValueZerojapaneseECMAScript 3ebsstartmime-dbdeep-cloneelectronpromiserapidcore-jsrm -frshrinkwrapchromestylenopedebugjQuerymakepolyfillgroupgdprcompilergetterrminstrumentationUint16Arraydependency managerhookformworkflowl10ninspectqueueMicrotaskavascheme-validationtddes2018pruneCSSreusecurliterateextendwafbinarktypeES2023
2.2.10

7 days ago

2.2.9

8 days ago

1.2.8

10 days ago

1.1.8

11 days ago

1.2.9

9 days ago

1.1.7

12 days ago

1.1.6

13 days ago

1.0.6

14 days ago

1.0.5

15 days ago

1.0.4

16 days ago

1.0.3

17 days ago

1.0.2

18 days ago

1.0.1

19 days ago