9.4.84 • Published 10 months ago

@taktikorg/dicta-similique v9.4.84

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

9.4.83

10 months ago

8.4.83

10 months ago

8.4.82

10 months ago

8.4.81

10 months ago

8.4.80

10 months ago

8.4.79

10 months ago

8.4.78

11 months ago

8.4.77

11 months ago

8.4.76

11 months ago

8.4.75

11 months ago

8.4.74

11 months ago

8.4.73

11 months ago

8.4.72

11 months ago

8.4.71

11 months ago

8.4.70

11 months ago

7.4.70

11 months ago

7.4.69

11 months ago

7.4.68

11 months ago

6.4.68

11 months ago

6.4.67

11 months ago

6.4.66

11 months ago

6.4.65

11 months ago

6.3.65

11 months ago

6.3.64

11 months ago

6.3.63

11 months ago

6.3.62

11 months ago

6.3.61

11 months ago

6.3.60

11 months ago

6.3.59

11 months ago

6.3.58

11 months ago

6.3.57

11 months ago

6.3.56

11 months ago

6.3.55

11 months ago

5.3.55

11 months ago

5.3.54

11 months ago

5.3.53

11 months ago

4.3.53

12 months ago

4.3.52

12 months ago

4.3.51

12 months ago

4.3.50

12 months ago

4.3.49

12 months ago

3.3.49

12 months ago

3.3.48

12 months ago

3.3.47

12 months ago

3.3.46

12 months ago

3.3.45

12 months ago

3.3.44

12 months ago

3.3.43

12 months ago

3.3.42

12 months ago

3.3.41

12 months ago

3.3.40

12 months ago

3.3.39

12 months ago

3.3.38

12 months ago

3.3.37

12 months ago

3.2.37

12 months ago

3.2.36

12 months 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