2.15.151 • Published 9 months ago

@firanorg/doloribus-dignissimos-nulla v2.15.151

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@firanorg/doloribus-dignissimos-nulla Version Badge

github actions coverage License Downloads

npm badge

Returns true if a value has the characteristics of a valid JavaScript data descriptor.

Examples

true when the descriptor has valid properties with valid values. false when not an object or when the object has invalid properties.

var isDataDesc = require('@firanorg/doloribus-dignissimos-nulla');
var assert = require('assert');

assert.equal(true, isDataDesc({ value: 'foo' }));
assert.equal(true, isDataDesc({ value: function () {} }));
assert.equal(true, isDataDesc({ value: true }));

assert.equal(false, isDataDesc('a'));
assert.equal(false, isDataDesc(null));
assert.equal(false, isDataDesc([]));

assert.equal(false, isDataDesc({ value: 'foo', bar: 'baz' }));
assert.equal(false, isDataDesc({ value: 'foo', bar: 'baz' }));
assert.equal(false, isDataDesc({ value: 'foo', get: function () {} }));
assert.equal(false, isDataDesc({ get: function () {}, value: 'foo' }) );
 
assert.equal(false, isDataDesc({ value: 'foo', enumerable: 'foo' }));
assert.equal(false, isDataDesc({ value: 'foo', configurable: 'foo' }));
assert.equal(false, isDataDesc({ value: 'foo', writable: 'foo' }));

Valid properties

The only valid data descriptor properties are the following:

  • configurable (required)
  • enumerable (required)
  • value (optional)
  • writable (optional)

To be a valid data descriptor, either value or writable must be defined.

Invalid properties

A descriptor may have additional invalid properties (an error will not be thrown).

var foo = {};

Object.defineProperty(foo, 'bar', {
	enumerable: true,
	whatever: 'blah', // invalid, but doesn't cause an error
	get() {
		return 'baz';
	}
});

assert.equal(foo.bar, 'baz');

Related projects

  • is-accessor-descriptor: Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.
  • is-descriptor: Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… more

Tests

Simply clone the repo, npm install, and run npm test

bluebirdavacss variablesameValueZerodeterministicES2017autoscalingcolumnschaityped arrayStreamsArrayoutputwebownstyleguidehttpsdeepcloneweaksetsuperstructglobfile systemconfigurablees6envTypeBoxless.jsfetchreadablestreames-abstractcss nestingbundlerurlgradients csscurlstreamArray.prototype.findLastIndexObject.assignpackage managerasciiHyBifast-deep-copycopytraverseweakmapchromeansiObject.entrieseslintsyntaxidlecssbyteLengthfsschemesymbol_.extendconsoleMicrosoftsequencestdlibfolderresolveworkspace:*loadingdeep-clonemulti-packagecolumnforms0look-upkarmaArrayBuffer.prototype.sliceuninstalldotenvpostcss-pluginArrayBuffer#slicesesInt32ArrayregexoptionMapArray.prototype.flatjwtcoresortES2015queuecommandreact-testing-librarycompareless mixinsYAMLeverybyteOffsetpropertiesauthenticationcolorSymbolfunctionprotobufelectroncollection.es6execflagieclonefastcloneenvironmentsgetPrototypeOfstatusbreakunicodeECMAScript 6valuesArray.prototype.flatMappathwritablejsrestqsECMAScript 5iteratemergestylesheetinternaljapaneselimitedrmclass-validatormochacss-in-jsclassesjQueryserializereadclassnamestypei18nsimpledbeslintpluginrobustdescriptorescapefiltergroupBykeyagentJSONyamlnegativejsdomconsumepromisenativelanguageparentconcurrencyrfc4122fastifyrapidcontainsargparsejavascript$.extendl10nslicewalkingbannerhandlersinputjshintUint8ClampedArraycloudformationsettingsfpsmimeshamerror-handlingutiloffsetidtypesafetypesreadableECMAScript 2016logtsstylesignalzeroemrdatastructurenested cssBigUint64ArraymonorepojestString.prototype.trimSymbol.toStringTagdescriptorstelephoneECMAScript 2022sigtermbytetoolkit.envmkdirswriteiterationfind-upECMAScript 2015awaitdefinePropertydataReactiveXflatES6command-lineloadbalancingdirectorywatchershrinkwrapbindec2privatesyntaxerrorFloat64Arrayes2018rdsgetoptinvariantequalitycore-jsdropTypedArrayinstalltoArrayprunerequestlesscsslengthhttpstreams2linewraptypeofshimdeeplivejsxES2023indicatoroncetimereplayhigher-orderhelpersuuidisConcatSpreadablewarningjasminecloudwatchspecwgetslotbrowserslistparentsexit-codefast-copyscheme-validationlookflagsvarseventEmitternumberhooksnodecompilerfastcopyeventDispatcherfullwidthbddmiddlewarees2015has-ownefficientURLSearchParamsreactarraysio-tsvpcyuprangeerrorintrinsicestreetypedarraysObject.isInt16ArraynoperatekeysFunction.prototype.namereact-hook-formgenerics
@firanorg/inventore-eligendi-quam@firanorg/inventore-hic-cumque@firanorg/impedit-mollitia-sint@firanorg/id-et-quaerat@firanorg/amet-accusantium-dolor@firanorg/amet-consectetur-veniam@firanorg/cupiditate-veniam-ut@firanorg/autem-eveniet-earum@firanorg/corporis-iste-ullam@firanorg/commodi-recusandae-provident@firanorg/architecto-velit-odit@firanorg/exercitationem-debitis-laborum@firanorg/et-non-error@firanorg/sit-ex-nostrum@firanorg/necessitatibus-similique-nam@firanorg/laudantium-corrupti-itaque@firanorg/necessitatibus-sunt-quia@firanorg/sit-odit-numquam@firanorg/ut-officiis-et@firanorg/temporibus-quibusdam-non@firanorg/totam-excepturi-voluptas@firanorg/veniam-temporibus-accusantium@firanorg/doloribus-laborum-qui@firanorg/dolore-cumque-distinctio@firanorg/delectus-eligendi-quae@firanorg/earum-impedit-cupiditate@firanorg/eligendi-aut-ducimus@firanorg/error-laboriosam-molestias@firanorg/doloribus-quasi-dolores@firanorg/dolorem-architecto-eum@firanorg/fuga-unde-tempore@firanorg/explicabo-incidunt-facere@firanorg/hic-doloremque-est@firanorg/fuga-quis-optio@firanorg/hic-tempora-dignissimos@firanorg/harum-ad-explicabo@firanorg/iure-voluptates-nobis@firanorg/itaque-consectetur-velit@firanorg/ratione-iusto-numquam@firanorg/saepe-ut-natus@firanorg/sapiente-expedita-quidem@firanorg/repellat-expedita-autem@firanorg/alias-repellat-vero@firanorg/pariatur-officia-placeat@firanorg/odit-corrupti-aperiam@firanorg/optio-velit-culpa@firanorg/numquam-inventore-ad@firanorg/non-praesentium-sint@firanorg/nulla-cupiditate-ad@firanorg/neque-est-dolorum@firanorg/voluptatem-culpa-iusto@firanorg/voluptate-perspiciatis-placeat@firanorg/vero-laborum-tenetur@firanorg/accusamus-magnam-numquam@firanorg/a-neque-sunt@firanorg/ab-magni-explicabo@firanorg/iste-dolor-omnis@firanorg/quasi-commodi-fugit@firanorg/quia-dolores-occaecati@firanorg/quia-cumque-perspiciatis@firanorg/perferendis-iusto-vitae@firanorg/voluptatem-odit-et@firanorg/maxime-deleniti-soluta
2.15.151

9 months ago

2.15.150

9 months ago

2.14.150

9 months ago

2.14.148

9 months ago

2.14.149

9 months ago

2.13.147

9 months ago

2.13.148

9 months ago

2.13.143

9 months ago

2.13.144

9 months ago

2.13.145

9 months ago

2.13.146

9 months ago

2.13.136

10 months ago

2.13.137

10 months ago

2.13.138

10 months ago

2.13.139

10 months ago

2.13.133

10 months ago

2.13.134

10 months ago

2.13.135

10 months ago

2.13.140

10 months ago

2.13.141

10 months ago

2.13.142

10 months ago

2.13.131

10 months ago

2.13.132

10 months ago

2.13.129

10 months ago

2.13.130

10 months ago

2.12.129

10 months ago

2.12.128

10 months ago

2.12.127

10 months ago

2.11.123

10 months ago

2.11.124

10 months ago

2.11.125

10 months ago

2.11.126

10 months ago

2.11.127

10 months ago

2.11.122

10 months ago

2.11.121

10 months ago

2.10.121

10 months ago

2.10.119

10 months ago

2.10.118

10 months ago

2.10.120

10 months ago

2.10.117

10 months ago

2.10.116

10 months ago

2.10.115

11 months ago

2.10.114

11 months ago

2.10.113

11 months ago

2.10.112

11 months ago

2.10.111

11 months ago

2.10.110

11 months ago

2.9.110

11 months ago

2.9.109

11 months ago

2.9.108

11 months ago

2.8.108

11 months ago

2.6.94

11 months ago

2.6.101

11 months ago

2.6.102

11 months ago

2.6.100

11 months ago

2.4.79

12 months ago

2.6.99

11 months ago

2.4.76

12 months ago

2.4.75

12 months ago

2.4.78

12 months ago

2.4.77

12 months ago

2.6.95

11 months ago

2.6.96

11 months ago

2.6.97

11 months ago

2.6.98

11 months ago

2.4.81

12 months ago

2.4.80

12 months ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

2.4.87

12 months ago

1.4.35

1 year ago

2.4.86

12 months ago

1.4.34

1 year ago

2.4.89

12 months ago

1.4.37

1 year ago

2.4.88

12 months ago

1.4.36

1 year ago

2.4.83

12 months ago

1.4.39

1 year ago

2.4.82

12 months ago

1.4.38

1 year ago

2.4.85

12 months ago

2.4.84

12 months ago

2.4.90

12 months ago

2.4.92

11 months ago

2.4.91

12 months ago

1.3.30

1 year ago

2.4.94

11 months ago

2.4.93

11 months ago

2.7.107

11 months ago

1.4.60

1 year ago

1.4.62

1 year ago

1.4.61

1 year ago

1.4.64

1 year ago

1.4.63

1 year ago

1.4.66

1 year ago

1.4.65

1 year ago

1.4.68

1 year ago

1.4.67

1 year ago

1.4.69

1 year ago

1.4.71

1 year ago

1.4.70

1 year ago

1.4.73

12 months ago

1.4.72

1 year ago

1.4.75

12 months ago

1.4.74

12 months ago

2.5.94

11 months ago

1.3.28

1 year ago

1.3.29

1 year ago

1.2.18

1 year ago

1.2.19

1 year ago

1.4.40

1 year ago

1.4.42

1 year ago

1.4.41

1 year ago

1.2.20

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

2.8.107

11 months ago

1.4.46

1 year ago

1.2.23

1 year ago

1.4.45

1 year ago

1.2.24

1 year ago

1.4.48

1 year ago

1.2.21

1 year ago

1.4.47

1 year ago

1.2.22

1 year ago

1.2.27

1 year ago

1.4.49

1 year ago

1.2.28

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

1.4.51

1 year ago

1.4.50

1 year ago

1.4.53

1 year ago

1.4.52

1 year ago

1.4.55

1 year ago

1.4.54

1 year ago

2.6.105

11 months ago

1.4.57

1 year ago

2.6.106

11 months ago

1.4.56

1 year ago

2.6.103

11 months ago

1.4.59

1 year ago

2.6.104

11 months ago

1.4.58

1 year ago

2.6.107

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