1.0.0 • Published 22 days ago

@povsicoenpm/quas-numquam-magnam v1.0.0

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

@povsicoenpm/quas-numquam-magnam 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('@povsicoenpm/quas-numquam-magnam');
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

debuggernopeES5vpcjsremovekarmapropertywrapBigInt64ArrayconsumeCSSStyleDeclarationserializationsesnodejsECMAScript 2019awaitpostcss-plugindependency managervalidatecoerciblewritableescapeJSON-SchemaeslintpluginmacoscolorfastifytoStringTagreal-timecompile lessformsmatchpluginidbusyUint8ArraystatelessES2020watchs3ArrayBuffer.prototype.slicephonepipeObject.values-0look-upReflect.getPrototypeOfnumberloadbalancingperformancebeanstalkajaxgraphqlBigUint64ArrayURLdatastructureprotobufapollocss lesshigher-orderformtestingkinesissetterserializerformatspecArray.prototype.flatMapfilecloudsearchchanneljsxECMAScript 2015assertionwidthObservablesqueuematchAllECMAScript 5toolkitcolumnsortedfindupparsingwalkingcore-jsmoduleparentsconsoleiterationwebpropertiesmakecollectionasyncreactshellrapidenvflates-shimsquerytapvarsES3defineebsrdsargvcircularcloudtrailpackage.jsonlrurangeerrorfixed-widthrmmimetypes256Float64ArrayiamRegExp#flagsclassesReactiveXbytetypanionECMAScript 3copyqsES7redux-toolkitpackageszodnameInt32ArrayloadingcjkutilPromiselesssameValueZerocloudwatchmkdirstermform-validationstringifierinternal slotcreateimportexportreadtddlogfigletbddtimecall-bindkeyworkerelectronsnsiteratetoSortedparentfromES2021class-validatorsearchperformantduplexguidlockfilestringconcatMapES2018gradients css3definePropertyreact-testing-libraryRxsetImmediatemkdirpbufferoptimistquotesiginttypescripttrimRightlookterminalobjectfast-deep-clonedircall-boundrouterstreamclassnamescallbackshrinkwrapflattenupglobalsdeleteinstallFunction.prototype.namefunctionalsomebannerdeep-copyloggerRegExp.prototype.flagspromisenpmECMAScript 2018toobjectargsObject.fromEntriescheckspinnerstructuredCloneomitio-tsserializewatchFilereduxaccessorsymlinkCSSregularsqscolourhasrfc4122efficientairbnbES8groupBybootstrap csscolumns__proto__traverseJSONgettergetPrototypeOfcss-in-jsArrayBuffer#sliceinterruptsenumerablesignalstoolsclassnamereducerString.prototype.trimlesscssfetchrandomspinnerscorsasciifunctionsstyleArray.prototype.includesstringifyvalidRxJSES6configpositiveoperating-systempushthrottleerrorstatees-shim APIsigtermdataviewcharactersrgbpasswordArray.prototype.flattenES2017watchingunicodenamesjsdiffcollection.es6bootstrap lessentriesbuffersdropchromium.envstyled-componentspyyamlwhatwgstreams2lasttrimfunctiondom-testing-libraryexpressionvalidationreuseopenMapcrypthandlersmapmapreduceECMAScript 2021cloudfrontvaluePushes7react-hooksquerystringpersistentconfigurablepredictableenvironmentsreadableString.prototype.matchAlllinewrapgroupobjcolorsratetslibsinatranegative zerolivemochatestertsexit-codeTypeScriptTypedArrayintrinsicyamltypeofelbmru[[Prototype]]accessibilitymime-dblibphonenumberECMAScript 7ponyfillesutil.inspectparserRFC-6455endpointindicatorhookformstylingESprototypeassignbindpicomatchshebangajvappjavascriptextraparseawsTypeBoxmulti-packageArray.prototype.flatcodesrestsymlinksjoibyteLengthscheme-validationglobaltypedarraylinkexecoutputStreames2017monorepoES2022dependenciesslotless.jsfast-copychromebrowserslistgradients csshooksproxy0trimEndWebSocketarraysdiffSetcomparetypesafewordbreak$.extendwarningarktyperedactargumentprivate dataeslintinputWeakMapfindmixinscommandimporthashECMAScript 2022safeObject.getPrototypeOffullwidthflagsObject.definePropertybundleruninstalllanguageauthenticationjasminevaluesoptimizerprogresshas-ownutilitiesamazonenvironmentfilteres6command-linelengthclientxhrrestfulassertstaskstreamsmergeexpresssharedtoArrayiebrowserhelpersbyteOffsetwalktypedweaksetcachefseventselmansierror-handlingfstouchiseast-asian-widthfast-clonestatushttpstypedarrayscalleveryES2016replaybatchutilitynested cssvariables in csssettingsMicrosoftdayjsawesomesaucehasOwnPropertyastcontainsnodedescriptorsfind-upiteratorfull-widthURLSearchParamsimmerurlwafmodulesoptionfindLastttypromiseslimitschemaimmutablebcryptestreeratelimitglacierisConcatSpreadablejsonclisimpledbcallboundjQuerysyntaxerrorqueueMicrotaskeventDispatcherkoreancssprefixstoragegatewayreadablestreamInt16ArrayregexfolderbreakUint32ArrayFloat32Arraystdlibinvariantexitreact-hook-formsymbolinferencelazyshamdeepcloneStyleSheetstarterarraypreprocessorObservableYAMLObject.entriesUnderscorekeysfile systemtapedeterministicgdprdirectorymkdircurltypeerrores2018WebSocketses2016endereventswhichdynamodbpostcssautoscalingstablesequencejapaneseECMAScript 6ecmascriptassertless csswriteArray.prototype.findLastIndexObject.iseslintconfiginspecta11yECMAScript 2023rm -rfdeepgetoptweakmapelasticacheencryptionObjectReactiveExtensionsfpstelephonefastcopygetOwnPropertyDescriptortrimLeftapiArray.prototype.containsreduceshimidledescriptionrequirelistenersmake dires-abstractpolyfillregular expressionsHyBilinuxzerochinesegenericsi18nidentifiersECMAScript 2016loggingdeep-clonebrowserlistwordwrapresolvetrimStartdataViewSymbolrm -frsymbolsartstylesheetsetconcurrencycallbindObject.assigntypescorecryptoinstallerprivateextensionfluxeventEmitterArrayswffast-deep-copyuuidbundlingrequestmovewatchercloudformationlimitedhotbluebirdsetPrototypeOfprocessvariablesmiddlewarechaiworkflowvestpnpm9Array.prototype.filtersignalES2019authcommanderavafullminimalprotocol-buffersWeakSetagentUint16Arraymobilestyleguidedeepcopysortjwtpackage managerpathonceprotogetrmdirxterml10ntypedomAsyncIteratorec2superagentprettyarraybufferextendjsdomequaltexttostringtagcss variableformattingclonemomentconnectspeedUint8ClampedArrayequalitynativeoffsetruntimeeslint-pluginInt8ArraypatchSymbol.toStringTagESnextpackagesyntaxmatchesgetintrinsicwgetless compileres5less mixinswindowsfastconcatES2015code pointsprune
@skylernpm/modi-sit-beatae@skylernpm/modi-vero-doloremque@skylernpm/natus-libero-voluptatibus@skylernpm/iste-cupiditate-quisquam@skylernpm/iure-eaque-iure@skylernpm/laudantium-natus-natus@skylernpm/maxime-accusantium-est@skylernpm/ab-perferendis-quaerat@skylernpm/sunt-laudantium-at@skylernpm/temporibus-ab-eius@skylernpm/ut-quis-sapiente@skylernpm/eligendi-explicabo-delectus@skylernpm/eum-id-ad@skylernpm/excepturi-suscipit-occaecati@skylernpm/consequuntur-mollitia-ipsum@skylernpm/culpa-at-fuga@skylernpm/exercitationem-reiciendis-inventore@skylernpm/explicabo-repudiandae-aut@skylernpm/facere-totam-ratione@skylernpm/facilis-velit-vel@skylernpm/fuga-cumque-officia@skylernpm/hic-inventore-dolores@skylernpm/id-modi-perspiciatis@skylernpm/reiciendis-non-corrupti@skylernpm/sapiente-molestias-voluptatibus@skylernpm/nesciunt-aut-reprehenderit@skylernpm/numquam-illo-incidunt@skylernpm/occaecati-provident-optio@skylernpm/perferendis-sequi-consequuntur@skylernpm/porro-iusto-possimus@skylernpm/quia-placeat-ducimus@skylernpm/quo-alias-nam@skylernpm/quos-suscipit-quibusdam@skylernpm/voluptates-itaque-dignissimos@skylernpm/aliquid-eius-harum@skylernpm/aspernatur-ipsa-totam@skylernpm/atque-blanditiis-reiciendis@skylernpm/aut-nihil-impedit@omegion1npm/ab-asperiores-ipsam@omegion1npm/cupiditate-ullam-eius@omegion1npm/dignissimos-fugit-est@omegion1npm/consequatur-occaecati-quidem@omegion1npm/corporis-nihil-accusantium@omegion1npm/doloremque-nulla-beatae@omegion1npm/eius-blanditiis-quis@omegion1npm/fuga-ipsa-harum@omegion1npm/occaecati-eius-cum@omegion1npm/tempora-minima-aut@omegion1npm/tempora-nostrum-repellendus@omegion1npm/vero-esse-error@omegion1npm/voluptas-dolorum-autem@omegion1npm/voluptates-quas-a@omegion1npm/maxime-eius-cumque@omegion1npm/mollitia-asperiores-ut@omegion1npm/sint-sit-dolorem@omegion1npm/voluptatibus-facere-incidunt@omegion1npm/illum-porro-sit@omegion1npm/ipsa-odio-illo@omegion1npm/quia-commodi-totam@omegion1npm/quidem-consectetur-nihil@omegion1npm/recusandae-maiores-vitae@omegion1npm/saepe-laudantium-quod
1.0.0

22 days ago