2.7.102 • Published 10 months ago

@taktikorg/perferendis-at v2.7.102

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

@taktikorg/perferendis-at Version Badge

github actions coverage License Downloads

npm badge

Define a data property on an object. Will fall back to assignment in an engine without descriptors.

The three non* argument can also be passed null, which will use the existing state if available.

The loose argument will mean that if you attempt to set a non-normal data property, in an environment without descriptor support, it will fall back to normal assignment.

Usage

var defineDataProperty = require('@taktikorg/perferendis-at');
var assert = require('assert');

var obj = {};
defineDataProperty(obj, 'key', 'value');
defineDataProperty(
	obj,
	'key2',
	'value',
	true, // nonEnumerable, optional
	false, // nonWritable, optional
	true, // nonConfigurable, optional
	false // loose, optional
);

assert.deepEqual(
	Object.getOwnPropertyDescriptors(obj),
	{
		key: {
			configurable: true,
			enumerable: true,
			value: 'value',
			writable: true,
		},
		key2: {
			configurable: false,
			enumerable: false,
			value: 'value',
			writable: true,
		},
	}
);
ES8animationspawnimportexportoncepushfastomitcallbackjasminees-abstractfolder0rm -rfES2017callvalidaterouterprototypewritefunctionalebslocationkeysrfc4122reactStreamstypescripttouchselfajvimmerreact-hooksmapreduceendpointgetoptimizerArrayBuffer.prototype.sliceautoscalingutilsspringminimalreverseinstallerclassnameObject.keysmodulesflatqueryacornFloat64ArraypackagesestrimStartlanguagereversedtesterstructuredClonematchescurlvalueyupkoreantypesafees2017subprocesscompilerJSON-SchemaECMAScript 2021flattenfindLastIndexnpmignorebufferssyntaxloadbalancingfilterhelpersdeep-copycodes.gitignoredeterministicMapmergearraysFunction.prototype.namevalidationthreehasOwnhasECMAScript 2023toArrayloggingInt32ArrayjestterminalcoveragebyteLengthvaluesgesturestaperoutepipelookjsxpropertybusyregexkeysinatraexecfiledependenciesbeanstalkdom-testing-libraryeventEmitterautoprefixerquoteconfigurablevartraverseemrregexpformsmatchAlles-shimsbrowserslistdragscheme-validationmake dira11yUint8ArrayeventDispatcherfast-deep-clonestringifierlisteners[[Prototype]]flatMapes-shim APIes2018forEachwalkingestreeinputObject.getPrototypeOfserializationsource mapquerystringwarningshellistanbulObservableArray.prototype.flattenchromeclassesSymbol.toStringTagglaciercolourhttpcurriedsimpledbES2022higher-ordergetintrinsicsymlinkstacitTypedArrayObject.fromEntriesjshintes8superstructtermimmutablereducereslintpluginharmonyIteratorecmascriptbabelframeworkcachetc39fast-deep-copy_.extendprivate dataformRxqueueMicrotaskmodulecallbounddeleteworkernopecssredactcircularArrayBufferfast-clonesharedArrayBuffer#slicecommanderenvObject.definePropertyES2018redux-toolkithookstakeclimkdirsbufferlockfiletypepackagesparentsjavascripthtmll10ndeepcloneexpressionenderreadablecode pointsmakeroute53getPrototypeOfdeepcopytoolkitform-validationenvironmentmanipulationutil.inspectAsyncIteratorparentArray.prototype.filterairbnbpackage.jsontrimEndflagspinnerssyntaxerrorECMAScript 2017BigUint64Arrayreal-timeserializerRFC-6455requiremulti-packagebyteOffsetsortlrurestexpress
2.7.102

10 months ago

2.7.101

10 months ago

2.6.101

10 months ago

2.6.100

10 months ago

2.6.99

10 months ago

2.5.99

10 months ago

2.5.98

10 months ago

2.5.97

11 months ago

2.5.96

11 months ago

2.5.95

11 months ago

2.5.94

11 months ago

2.5.93

11 months ago

2.5.92

11 months ago

2.5.91

11 months ago

2.5.90

11 months ago

2.5.89

11 months ago

2.5.88

11 months ago

2.5.87

11 months ago

2.5.86

11 months ago

2.5.85

11 months ago

2.5.84

11 months ago

2.5.83

11 months ago

2.5.82

11 months ago

2.5.81

11 months ago

2.5.80

11 months ago

2.5.79

11 months ago

2.5.78

11 months ago

2.5.77

11 months ago

2.5.76

11 months ago

2.5.75

11 months ago

2.5.74

11 months ago

2.5.73

11 months ago

2.5.72

11 months ago

2.4.72

11 months ago

2.4.71

11 months ago

2.3.71

11 months ago

2.3.70

11 months ago

2.3.69

12 months ago

2.2.69

12 months ago

2.2.68

12 months ago

2.2.67

12 months ago

2.2.66

12 months ago

2.2.65

12 months ago

2.2.64

12 months ago

2.2.63

12 months ago

2.2.62

12 months ago

2.2.61

12 months ago

2.2.60

12 months ago

2.2.59

12 months ago

2.2.58

12 months ago

2.2.57

12 months ago

2.2.56

12 months ago

2.2.55

12 months ago

2.2.54

12 months ago

2.2.53

12 months ago

2.2.52

12 months ago

2.1.52

12 months ago

2.1.51

1 year ago

2.1.50

1 year ago

2.1.49

1 year ago

2.1.48

1 year ago

2.1.47

1 year ago

2.1.46

1 year ago

2.1.45

1 year ago

2.1.44

1 year ago

2.1.43

1 year ago

2.1.42

1 year ago

2.1.41

1 year ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

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.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

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