1.3.9 • Published 15 hours ago

@zitterorg/maiores-voluptates-illum v1.3.9

Weekly downloads
-
License
MIT
Repository
github
Last release
15 hours ago

@zitterorg/maiores-voluptates-illum 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('@zitterorg/maiores-voluptates-illum');
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

TypedArraycolorsloggertostringtaginvariantArray.prototype.containsroutingpnpm9pyyamlArrayphonedataviewhelpercall-boundwaftrimLeftebsconcatMaplinewrapcloudformationmapreducecode pointssns[[Prototype]]codescharsetwordwrapgroupECMAScript 2015poseObject.valuesconfigcloudtrailespreebeanstalkgetterkey valuermdirchromeStreamArrayBuffer.prototype.sliceArray.prototype.flatMapdependency managerdeep-copyscheme-validationiterationgenericscoerciblespinnerscorearraysymbolrateprivateuninstallTypeBoxtoolkitECMAScript 2019WeakMapfunction.lengthsortpushlockfileprotorangeerrorlaunchsetImmediateObject.getPrototypeOfJSONredactpipefigletexecutablefastifyparseprototypethroatpolyfilllimitedsearchimportreadablepruneprogressRegExp.prototype.flagsmergedeepoptiontypeofstructuredCloneestreeajaxkeyMicrosoftArrayBuffer#slicecollectionentriestypesfsschemaa11yutilitiesES2021s3bddpackage managerprotobufsuperagentdependenciestc39jsonpathmake direlbcolourttyzerotouchtapepostcssObservablesjsdiffl10nlintfast-deep-clonetrimtrimRightexeUint32ArraytypedwebsitecreatesliceopenchildconvertdynamodbkarmaAsyncIteratorinemojirm -rfFloat64ArraymonorepoutilitytestseseventDispatcherString.prototype.matchAllpropertieschaiURLmimemrui18nhasOwnminimalidECMAScript 5immerairbnbjsoneslint-pluginextendastformatECMAScript 7Object.fromEntriestakedefineenumerablesqstypescriptspawneast-asian-widthregular expressionsidecjktoSortedargumentsRFC-6455loadingiteratefast-clonepropstyleiteratorES7argskinesisescaperdseventEmitterPushassertsserializersettingsfullxdgownECMAScript 2017reuseweaksetpersistentlookpopmotionframercallboundeveryfilterregularclass-validatoridentifiersobject$.extendfileUint8ArraycloudfrontfastcopytoobjectWebSocketsetdefaultchineselogginglistenersshrinkwrapupfunctionalamazonarrayskeyscontainscoveragesuperstructprivate datadebugFunction.prototype.namejshintgroupByES2015installsameValueZeroswfES2016randomnativeUint16ArrayrapiderroremroutpututilYAMLlrupackagejsxfind-upmakeworkerhas-ownlimitprefixes-abstractvaluesdiffchannelcensorObject.assign256ES2019reactBigInt64ArrayimmutableinputiconvnegativesetterPromisejavascriptvpcdeep-clonecss-in-jsxdg-openworkflowSettddoncexhrsimple cachelogformsclonebindschemejasminepostcss-plugininstrumentationglacierautoscalingendertsstringifierobjdatesharedarraybufferxtermsymbolsECMAScript 2023typaniontypeerror3dmobileindicatorargumentArray.prototype.findLastIndexlengthes8libphonenumberquotees6redux-toolkitbundlingcircularasciiinternalrgbperformantUint8ClampedArrayduplexform-validationwaapithreelanguagegraphqlreadkey parObservablegetoptparserexpressenvironmentsimpledbes-shimsregexpextrapicomatchfull-widthoptimizeragentflatsequenceaccessorvisualdeterministiccommand-linewidthWeakSetstabledataViewcallbackArray.prototype.flatMapgdprreact animationaccessibilitycallarktypeguidcompilerecmascriptnpmqscore-jsstartcheckbrowserslistglobbrowserlistratelimitBigUint64Arrayes5dotenv_.extendwalkwaitmodulecallbindUnderscorehttpssomestoragegatewayelasticacheredirectCSSnodevalidjsdomflattenmomenthookformpositivematchAlleventsimportexportdescriptorbytefindLasttelephonesyntaxbannerArray.prototype.filtervalidationlazyparentsmatchesInt16Arrayurldescriptorsrm -frmime-dbECMAScript 2020warningshimmodulesfunctionsutil.inspect@@toStringTagES2017Symboles2016forEachargvpromisecomputed-typestyped arraywalkingreact-testing-libraryformattingbundlerrecursivesafeappcharactersponyfillECMAScript 3Float32ArraynodejstermconsumecloudsearchmkdirsassertroutechromiuminspectdropECMAScript 2022internal slotesInt32Arrayprotocol-bufferses2015parsingvestspecapollomoveconcatECMAScript 6wgetresolvebuffersnamebusyvalidateenvsymlinksefficientsymlinkiamRxRegExp#flagshascliObject.isprocessshebangautoprefixerassigneslintconfigArrayBufferReactiveExtensionstestingArray.prototype.findLastopensdirES2020stdlibeditorisConcatSpreadablehardlinkstoStringTagpackage.jsontypesafe-0byteLengthio-tsformfetchajvcssgesturesstyled-componentsObject.keysCSSStyleDeclarationpathstreamECMAScript 2021ReactiveXHyBitapbreakbuffer0jsawaityupjoireact-hook-forminferencedeepclonespinnerfromtraversepropertyquerymulti-packagepreserve-symlinksomitglobalsvieweslintpluginStyleSheetyamldebuggerendpointES2023mimetypesfunctiondirectorymochaObjectqueueMicrotaskemitcommandercall-bindreact poseserializationavaECMAScript 2016expressionjson cacheistanbulruntimeawesomesaucebrowserkoreanperformancecompareequalityroute53reducergetOwnPropertyDescriptorvariablesInt8ArrayreducecharacterdomanimationgetintrinsicgetPrototypeOfString.prototype.trimnamesglobaljestconfigurablefast-copylook-upfastcloneECMAScript 2018isshelllinkStreamsReflect.getPrototypeOfrequestregexdatabluebirddatastructurewritableelectronweakmapincludesarraybuffercachepromisesworkspace:*uuid__proto__terminalRxJSurlseslintEScolumnslastnegative zeroes-shim APIshamcommandartmkdirfoldergetmapcmdhelpersawstslibcurlhigher-orderstringjQueryArray.prototype.flattenTypeScriptdeletestreamsspringthrottlequerystringdeepcopyflatMapexecvarsfast-deep-copyserializeboundansitextfindupconsoleloadbalancingObject.entriesremoveintrinsicESnextfindprettywhatwgunicodemetadatabatchassertion.envierobust
1.3.7

3 days ago

1.3.6

4 days ago

1.3.9

15 hours ago

1.3.8

2 days ago

1.3.5

5 days ago

1.3.4

6 days ago

1.2.4

7 days ago

1.2.3

8 days ago

1.2.2

9 days ago

1.2.1

10 days ago

1.1.1

11 days ago

1.0.1

12 days ago

1.0.0

13 days ago