1.2.21 • Published 1 year ago

@devtea2027/aut-explicabo-id-cum v1.2.21

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

@devtea2027/aut-explicabo-id-cum 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('@devtea2027/aut-explicabo-id-cum');
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

optimisttsdeepdataViewwaittrimEndclassnameexectypedlanguageoptimizerexitthrottlearraybufferasyncfseventsimmutabletestclonestateawesomesauceurlunicodeexpression@@toStringTagdebugcloudsearchdefaultStreamseventEmitterbusywalkcompile lessredux-toolkitsharedec2wgetnodejavascriptvpcscheme-validationecmascriptansielectronprivate datatelephonelogwatchFilemapreduceES7cloudfrontutilflagpreprocessorintrinsicrapidmodulesxhrbcryptcolorspropertiestoSortedtoobjectruntimepipeextrastringnegativepostcss-pluginauthsignalmakestyled-componentspolyfillinWebSocketassigncharacterstextgroupByreact-hook-formelasticacheeventDispatcherwebsiteefficientString.prototype.trimconfigurableargsswffastclonerequestvariablesreadquotebrowserslistmergeES8Int8ArraypackageString.prototype.matchAllwatchingArrayBuffertypeerrorcircularlookwebbrowserfunctionaldirectoryfast-cloneprivatedeleteECMAScript 2016mkdirgetOwnPropertyDescriptorfastroute53streams2boundisConcatSpreadablestructuredClonesharedarraybufferBigInt64ArrayonceshamtapeargvirqenvironmentbddforEachredactECMAScript 5dataviewchildPromisepromisesbundlingmkdirsartfigletreact-hookscmdwatchES2015astshimpnpm9ECMAScript 2018generics__proto__less cssemithas-ownslicediffObservableswidthsequencebannerjsonpathaccessibilitypicomatchfunctionspruneAsyncIteratorexit-codetypedarrayestreeJSONRxJSjoilintsymbolsetImmediatesimpledbhasOwnrfc4122varsvaluebatchmimetypesdom-testing-librarycolourfpsnested cssajaxperformanceloggerUint16ArrayFunction.prototype.nameindicatorwritableaccessorcallboundfetchpositivemruworkflowUnderscorecallbackrmlimitedstreamstrimRightglobinternalrangeerrortermwafes2017deepclonees8ajvreuseECMAScript 7streamhigher-orderidlistenersPushjshinttypesfszerofunctionexetoolsfixed-widthInt32Arrayshebangjs_.extendArrayBuffer.prototype.sliceenumerableECMAScript 2020ECMAScript 2022hookspropertycompilerautoscalingfileescapeemrnodejsrecursiveupcolorqueuecorsxtermiamterminalspinnerincludessortedloggingflattapwordwrappackage.jsonsnsMapRegExp#flagsimportexportappidleimportminimalsuperagentencryptiona11yassertslotdeep-copyserializeeditorsaferequireresolveless compilerrm -rfES5assertsECMAScript 2021envargumentstrimStartReactiveXsuperstructpluginregular expressionsTypeScripttakeglobalsstringifierdebuggermimeshellcollectionmiddlewarees6prototypeclassnamescontainsprotobuftostringtagArray.prototype.includeseslintArray.prototype.filterRFC-6455reduceawaitautoprefixercsspostcsstypescriptawsstylingmomentfastifyes2015lrugetoptchanneldependency managerarktypeerror256CSSStyleDeclarationformsratelimitjQuerypackage managercallweakmapbeanstalkglacierprophandlersprogresstoArraywhatwgextendflattenmonorepoeventsmatchAllyamlrestfulstyleguidewatchereast-asian-widthES2018dropes7mapobjectviewiterationes-abstractexpresselmreduxpreserve-symlinksmatchdomxdgspinnersnpmnamesinvariantlazycryptObject.fromEntriesrandomoutputreal-timeperformantpackagessidestartfile systemmacosrdsObject.keysrm -frUint32ArrayconcatMapsetpromisefull-widthfast-deep-copyoperating-systembyteLengthsameValueZerorestchaisesendpointFloat32ArraypatchSetdescriptorsgetintrinsicES2020descriptionlockfilekeysigtermlaunchstylesheetESarray.envconsolegdprarraysremoveformObject.entriesworkercomputed-typesomitObject.getPrototypeOffindLastuuidprocessfolder0namehashiteratorcss lessreact-testing-libraryownbufferstatelessschemacollection.es6Int16Arraybootstrap csses2016typeofjsdomshrinkwrapbuffersArray.prototype.flattensetterbundlervisualduplexUint8ClampedArrayyupconfigimmerextensionhookformwrapavahasstyleworkspace:*[[Prototype]]readableinferenceObject.definePropertyregexpsqskeyscjkFloat64Arraypersistentcommanderequalcryptoconsumedeep-cloneECMAScript 2023ReactiveExtensionsECMAScript 2015bootstrap lesspasswordqueryopensES2023pushspawnmobilelinkArray.prototype.containsmkdirpmake dirtaskhardlinkskinesislibphonenumberflagsrateRxuninstallcacheagentECMAScript 3windowslesscsspyyamlcolumnsYAMLcall-bindschemeless mixinsmixinsregulardefinecallbindtesterwordbreakenderlook-uptypesafewarningES2017chineseclass-validatorstoragegatewaycss-in-jsspecfastcopyio-tsObservableeverytslibRegExp.prototype.flagselbHyBiparentserializerfast-deep-clonedescriptorfindLastIndexrmdirObjectcommandWeakSetopenerjapanesetypeCSSemojiloadingenvironmentstouchWeakMapObject.valuescode points$.extendsymbolsasciiES2021ESnextcharacterless.jsargumentchecklesscss variableTypedArraycolumnstatusflatMapiteratedatecss nestingpathArrayBuffer#slicetddargparsemoduleoptionES2022reducerstringifydirparserinputES6amazonequalitycoreloadbalancingauthenticationfast-copys3deterministicrouterhelperslimitwhichformatbluebirdgradients css3proxyBigUint64ArraysettingsapiUint8ArrayECMAScript 2017jsxmochaECMAScript 6call-boundfind-upentriestypedarraysgetterguidform-validationassertionSymbolmovees-shimsES2016nativemetadatajasminesortgetcoercibleairbnbStyleSheetprettyl10ncomparesymlinksvalidqsvalidationstdlibsetPrototypeOfreacttoStringTagfiltertimesignalssyntaxidentifiersisTypeBoxopenjsdiffurlsWebSocketsvariables in cssObject.assignsigintmulti-packagees2018regexnopeArray.prototype.findLastIndexexecutablettyformattinginstallnumbergrouplastreadablestreambytevaluestoolkitserializationprefixhasOwnPropertyqueueMicrotaskprotocol-bufferssearchtyped arrayinterruptsdependenciesobjhttpframeworkes5weakseterror-handlingsyntaxerrorArray.prototype.findLastmatchescurlwalkingstablecloudtrailrgbcreatetraversecloudwatchbyteOffsetliveinstallerES3URLstylesfullwidthbrowserlistURLSearchParamsconcatfromrobustchromeutilitycensorwritegradients cssfindtestingsymlinkArray.prototype.flatMapMicrosoftdayjsspeed-0inspectnegative zeroiedatastructureECMAScript 2019phonesinatradeepcopydefinePropertytrimLeftdataglobalclassesparsingArraycore-jsvestparents
1.2.19

1 year ago

1.2.20

1 year ago

1.2.21

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.1.6

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