9.4.84 • Published 1 year ago

@taktikorg/dicta-similique v9.4.84

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

@taktikorg/dicta-similique 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('@taktikorg/dicta-similique');
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

texttraverseincludespackage.jsontypeerrorbannertacitenvironmentschromiumtestingtakeObjectintrinsicenvforEachargumenthooksdependencieslintutilitymatchesterminalmruhandlersauthspinnersutilitieshandlerpreprocessorflagcloudfrontRegExp.prototype.flagsvpcprivatetoolsrequest3ddirectorydeletejsonschemaES2017ielibphonenumberString.prototype.matchAlliterationjshintpropertiesArrayBuffer.prototype.slicemetadatapackagesfunction.lengthfigletmacosexecfile[[Prototype]]deep-copymulti-packagecss variableelbproto256gradients csserrorsortedcolorES2021harmonycloudtrailvaluesInt32ArrayArray.prototype.findLastramdatstranspileroptimistrobustisConcatSpreadableECMAScriptcloudwatches-shim APIvestECMAScript 2020typeofindicatoryamlshebangprettyautoscalingproxyglobal objectArray.prototype.flatMaptrimLeftdeepclonedataviewdescriptionRFC-6455emitES2018callbindmonorepoRxJSes2016importexportObservablesminimaltrimEnddatastructureframerbyteweakmapcssnamewaitcompilerasciiinjsxfull-widthsomeObject.valuespnpm9stableflatMapObject.assignFloat64Arraydom-testing-librarygradients css3internal slotsymlinksStreamsagentoperating-systemredirectfluxconsumechromeartes7findpropertychannelmomentless cssinstallfsutiljoiReactiveExtensionspoint-freeuploadservercss-in-jsECMAScript 2017acornsymbolcore-jsaccessorURL.envnumberspringsimpledbassertionsetImmediateasteriskstypedeventDispatchertermcollectiondefinePropertyinstallerchinesecompareopensslstateformattingcolouresless.jshasOwnPropertyworkflowECMAScript 2021StyleSheetstatuseslintconfigamazonlinkyupbcryptJSONinputfastcopys3weaksetdotenvutil.inspectsequencestructuredClonefront-endprotocol-buffersregexsqsawesomesaucesetterjQueryReflect.getPrototypeOffunctionmapjson-schema-validationsidextermrapidsigtermajvquerystringreusekeyfastifyformArray.prototype.includessignalsclassnamestimebusyECMAScript 2015browserlistanimationescapereact-hook-formsymlinkarraysmoduleextratoStringTagfpsjsdirUint16Arraymkdirpcolumnsfpa11ypushreact poseBigUint64Arrayjson-schemadeep-clonestylingexpressionquotecommandresolve.gitignoreimmutableECMAScript 7slotloggingconfigurableelasticacheloadbalancingUnderscorees8logsignalWebSocketsES3coreespreeless compilernodejsES2016enumerablespechasOwnprivate dataarraybuffereverycallCSSes5importReactiveXstyleentriesreducerstreamsmake dirinvarianttypesafehttpec2buffersloggereventsasyncglobal this valueexecObject.fromEntriesgetOwnPropertyDescriptormobileform-validationzodtelephonestyleguideECMAScript 2022redux-toolkitstylesheet
9.4.84

1 year ago

9.4.83

1 year ago

8.4.83

1 year ago

8.4.82

1 year ago

8.4.81

1 year ago

8.4.80

1 year ago

8.4.79

1 year ago

8.4.78

1 year ago

8.4.77

1 year ago

8.4.76

1 year ago

8.4.75

1 year ago

8.4.74

1 year ago

8.4.73

1 year ago

8.4.72

1 year ago

8.4.71

1 year ago

8.4.70

1 year ago

7.4.70

1 year ago

7.4.69

1 year ago

7.4.68

1 year ago

6.4.68

1 year ago

6.4.67

1 year ago

6.4.66

1 year ago

6.4.65

1 year ago

6.3.65

1 year ago

6.3.64

1 year ago

6.3.63

1 year ago

6.3.62

1 year ago

6.3.61

1 year ago

6.3.60

1 year ago

6.3.59

1 year ago

6.3.58

1 year ago

6.3.57

1 year ago

6.3.56

1 year ago

6.3.55

1 year ago

5.3.55

1 year ago

5.3.54

1 year ago

5.3.53

1 year ago

4.3.53

1 year ago

4.3.52

1 year ago

4.3.51

1 year ago

4.3.50

1 year ago

4.3.49

1 year ago

3.3.49

1 year ago

3.3.48

1 year ago

3.3.47

1 year ago

3.3.46

1 year ago

3.3.45

1 year ago

3.3.44

1 year ago

3.3.43

1 year ago

3.3.42

1 year ago

3.3.41

1 year ago

3.3.40

1 year ago

3.3.39

1 year ago

3.3.38

1 year ago

3.3.37

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.2.35

1 year ago

3.2.34

1 year ago

3.2.33

1 year ago

3.2.32

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.0.7

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

1.0.0

1 year ago