2.8.70 • Published 2 years ago

@zitterorg/delectus-nisi-impedit v2.8.70

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@zitterorg/delectus-nisi-impedit 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/delectus-nisi-impedit');
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

compilersyntaxerrorstatelessintrinsictermargumentprototypewafSetdependenciesES2022Streamgraphql-clientgenericspatchArray.prototype.containsprefixlook-upFloat32ArrayownArray.prototype.includesstyleguideopenjsdomsettypeerrorreadablefromnameprotoestreeloggingObject.istddObservablelaunchECMAScript 7gdprnumbertslibnpmajvutileditorchildsafemetadataprocessxtermgetPrototypeOfES2021asciipathObject.definePropertychecktrimRightwhatwgECMAScript 2021installfastclonecryptosharedswfhas-owncoverageforEachwriteec2elbInt16ArraysameValueZeromomentJSON-SchemaoptionglobalconverthookformposepicomatchthreerequirechaiformattinglinewrapstylingpositivesqsHyBiurlshamtypedstringifyPushhigher-ordermake diriteratorserializationObject.entriesoptimistlockfileES2016javascriptnodejspromisescommand-lineprogressawsisConcatSpreadablenegative zeropostcss-plugininternalsetPrototypeOfspinnersperformantespreecloudwatchansidirectoryeveryratelimit_.extendObject.fromEntriesprivateenvironmentclass-validatorrecursivevpcaccessoridentifiersdebugArray.prototype.findLastIndexURLlengthpromiseviewclitrimLefthelpersstoragegatewayes2015beanstalkdescriptorCSSStyleDeclarationpackagesflattenworkerArray.prototype.findLastReflect.getPrototypeOftypedarraysphonecallbackbluebirdstartsuperagentgesturesexecutableargvmoveopenerdeterministics3defaultECMAScript 5regexpRxlimitedsequenceperformanceArray.prototype.flatgetterdayjsArrayenviconvdependency manageruuidpopmotionregular expressionsString.prototype.trimslicevaluesvalidationjshintRxJSroute53readglobBigUint64Arrayglobalshashreact animationvestform-validationstdlibparentwhichES6breakpruneSymbol.toStringTagtypeofpostcssinspectUnderscoreequalES3consolebinaryrfc4122private dataECMAScript 3jssearchformescapedragsnshttpstylesyamlrdsRegExp.prototype.flagslooktapmulti-packagecharsetregexrm -frtelephonetestloadingstructuredCloneWebSocketreducepluginbyteformsuninstallworkflowlruecmascriptURLSearchParamsinternal slotzxcmdarraybufferpropertypushutilitiesrmdirObject.keysmkdirpttyCSSonceentriesproxyFloat64ArraytextequalityjQueryspeedyupshrinkwrappnpm9hardlinksi18nchannelbindObject.getPrototypeOfnativechromiumexees5symlinksconcatchinesefast-clonequeueMicrotaskbrowserredactcircularjsonpathaccessibilityio-tsiterationmonoreporeact-testing-librarynamesthrottleeventDispatcherspringbannerdom-testing-libraryES2018protocol-buffersreact poseelectronmobiledeepcopydeep-copypackageemitinstrumentationstyled-componentsdotenvwidthgettrimEndcore-jsrmStyleSheetfindLastIndexkeyvalueanimationjasmineeslintconfigassertlazyoptimizerECMAScript 6testingsortredirectdescriptioncurlwarning0hasOwnPropertytraversereusewaapicodessettingsES2017256Array.prototype.filterastponyfillESfast-deep-copyflatMapconsumefunction.lengthcall-boundTypeBoxstreamSymbolstarterquerystringfindLasttoArraygetOwnPropertyDescriptorobjimmerkeys3demojimapparsingObjectES2020bddweakmapes2017requestlogqueuesesInt8ArraycolumndataviewopensdiffasyncECMAScript 2020airbnbtc39mimetypesoutputmodulesstreamsfindformatjoicoercibletouchefficientcallbinddynamodbelasticache-0typessuperstructmoduleclientarktypeBigInt64ArraylibphonenumberinbyteOffsetawesomesauceslotimportcolourendpointfast-deep-clonecallwalkingextendreal-timefunctionsUint16ArrayWeakMapduplexassertskinesisnodeECMAScript 2015ES2019filtercommandregularexecfiletesterreduxtrimarraysgetintrinsicloggerutil.inspectArrayBuffermime-dbwaitReactiveXfetchautoscaling[[Prototype]]toStringTagawaitESnextparseendercollectionfastcopyflagsinferencecallboundgraphqlpreserve-symlinksshimreact-hookscreateidlepipedefineiterate$.extendweaksetcollection.es6JSONvalidatedroplocationmkdirfile systemschemabinariesl10ntimea11yinvariantcolorlocalcloudformationqsfastifyajaxECMAScript 2022execvisualvariablesappcommanderbrowserslistcloudsearchECMAScript 2018workspace:*figletpackage.jsonassertionYAMLdatefind-uprobustsimpledbtakeexecuteexpressionthroattapefastfull-widthjsdiffupchromeextensionTypedArrayresolvefsxhrbusyconfigmergecall-bindavavarsebscloneartwalkECMAScript 2016shellsyntaxlistenersfast-copy
2.8.70

2 years ago

2.7.69

2 years ago

2.7.68

2 years ago

2.7.70

2 years ago

2.7.67

2 years ago

2.7.66

2 years ago

2.7.65

2 years ago

2.7.64

2 years ago

2.6.62

2 years ago

2.6.63

2 years ago

2.6.64

2 years ago

2.6.59

2 years ago

2.6.60

2 years ago

2.6.61

2 years ago

2.5.59

2 years ago

2.5.58

2 years ago

1.3.24

2 years ago

1.3.25

2 years ago

2.5.56

2 years ago

2.5.57

2 years ago

1.3.23

2 years ago

1.3.28

2 years ago

1.3.29

2 years ago

1.3.26

2 years ago

1.3.27

2 years ago

1.3.31

2 years ago

1.3.32

2 years ago

1.3.30

2 years ago

1.3.35

2 years ago

1.3.36

2 years ago

2.4.56

2 years ago

1.4.48

2 years ago

1.3.33

2 years ago

1.4.47

2 years ago

1.3.34

2 years ago

1.3.39

2 years ago

1.4.49

2 years ago

1.3.37

2 years ago

1.3.38

2 years ago

1.4.51

2 years ago

1.4.50

2 years ago

1.4.53

2 years ago

1.3.42

2 years ago

1.4.52

2 years ago

1.3.43

2 years ago

1.4.55

2 years ago

1.3.40

2 years ago

1.4.54

2 years ago

1.3.41

2 years ago

1.3.46

2 years ago

1.4.56

2 years ago

1.3.47

2 years ago

1.3.44

2 years ago

1.3.45

2 years ago

1.3.22

2 years ago

1.3.18

2 years ago

1.3.19

2 years ago

1.3.20

2 years ago

1.3.21

2 years ago

1.3.17

2 years ago

1.3.15

2 years ago

1.3.16

2 years ago

1.3.13

2 years ago

1.2.12

2 years ago

1.3.14

2 years ago

1.2.13

2 years ago

1.1.12

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago