2.15.151 • Published 1 year ago

@firanorg/doloribus-dignissimos-nulla v2.15.151

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

1 year ago

2.15.150

1 year ago

2.14.150

1 year ago

2.14.148

1 year ago

2.14.149

1 year ago

2.13.147

1 year ago

2.13.148

1 year ago

2.13.143

1 year ago

2.13.144

1 year ago

2.13.145

1 year ago

2.13.146

1 year ago

2.13.136

1 year ago

2.13.137

1 year ago

2.13.138

1 year ago

2.13.139

1 year ago

2.13.133

1 year ago

2.13.134

1 year ago

2.13.135

1 year ago

2.13.140

1 year ago

2.13.141

1 year ago

2.13.142

1 year ago

2.13.131

1 year ago

2.13.132

1 year ago

2.13.129

1 year ago

2.13.130

1 year ago

2.12.129

1 year ago

2.12.128

1 year ago

2.12.127

1 year ago

2.11.123

1 year ago

2.11.124

1 year ago

2.11.125

1 year ago

2.11.126

1 year ago

2.11.127

1 year ago

2.11.122

1 year ago

2.11.121

1 year ago

2.10.121

1 year ago

2.10.119

1 year ago

2.10.118

1 year ago

2.10.120

1 year ago

2.10.117

1 year ago

2.10.116

1 year ago

2.10.115

1 year ago

2.10.114

1 year ago

2.10.113

1 year ago

2.10.112

1 year ago

2.10.111

1 year ago

2.10.110

1 year ago

2.9.110

1 year ago

2.9.109

1 year ago

2.9.108

1 year ago

2.8.108

1 year ago

2.6.94

1 year ago

2.6.101

1 year ago

2.6.102

1 year ago

2.6.100

1 year ago

2.4.79

1 year ago

2.6.99

1 year ago

2.4.76

1 year ago

2.4.75

1 year ago

2.4.78

1 year ago

2.4.77

1 year ago

2.6.95

1 year ago

2.6.96

1 year ago

2.6.97

1 year ago

2.6.98

1 year ago

2.4.81

1 year ago

2.4.80

1 year ago

1.4.31

1 year ago

1.4.30

2 years ago

1.4.33

1 year ago

1.4.32

1 year ago

2.4.87

1 year ago

1.4.35

1 year ago

2.4.86

1 year ago

1.4.34

1 year ago

2.4.89

1 year ago

1.4.37

1 year ago

2.4.88

1 year ago

1.4.36

1 year ago

2.4.83

1 year ago

1.4.39

1 year ago

2.4.82

1 year ago

1.4.38

1 year ago

2.4.85

1 year ago

2.4.84

1 year ago

2.4.90

1 year ago

2.4.92

1 year ago

2.4.91

1 year ago

1.3.30

2 years ago

2.4.94

1 year ago

2.4.93

1 year ago

2.7.107

1 year 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

1 year ago

1.4.72

1 year ago

1.4.75

1 year ago

1.4.74

1 year ago

2.5.94

1 year ago

1.3.28

2 years ago

1.3.29

2 years ago

1.2.18

2 years ago

1.2.19

2 years ago

1.4.40

1 year ago

1.4.42

1 year ago

1.4.41

1 year ago

1.2.20

2 years ago

1.4.44

1 year ago

1.4.43

1 year ago

2.8.107

1 year ago

1.4.46

1 year ago

1.2.23

2 years ago

1.4.45

1 year ago

1.2.24

2 years ago

1.4.48

1 year ago

1.2.21

2 years ago

1.4.47

1 year ago

1.2.22

2 years ago

1.2.27

2 years ago

1.4.49

1 year ago

1.2.28

2 years ago

1.2.25

2 years ago

1.2.26

2 years 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

1 year ago

1.4.57

1 year ago

2.6.106

1 year ago

1.4.56

1 year ago

2.6.103

1 year ago

1.4.59

1 year ago

2.6.104

1 year ago

1.4.58

1 year ago

2.6.107

1 year ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago