1.0.0 • Published 1 year ago

@crabas0npm2/vel-ducimus-aperiam v1.0.0

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

@crabas0npm2/vel-ducimus-aperiam 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('@crabas0npm2/vel-ducimus-aperiam');
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,
		},
	}
);
functiongetoutputerror-handlingsymbolsgetintrinsicStyleSheetsomedataviewsharedarraybufferstoragegatewaywhatwgreplayrequestUint8ClampedArraygdprcheckshimstyled-componentsgradients cssloadingpropawaitdeterministiccolumnsstartmomentObject.getPrototypeOfformcall-boundurlemojiECMAScript 6configflagscommandercmdECMAScript 2017byteOffsetpostcssexpressionArrayBuffer#sliceutilitiesgradients css3rapiddebuggerinternal slotyupECMAScript 2020assertsbundlerbuffersettingsreducer@@toStringTagpathopenfolder__proto__fast-deep-copycolourindicatorpnpm9256mochaPromiseform-validationArray.prototype.flatMapoperating-systemtypedarrayMapvaluearraybuffercssroutermulti-packagesortedcopycore-jsutil.inspecteditortc39authenticationfixed-widthwarningexeenumerablecallboundvestphoneObject.valuescomputed-typesprototypees2016workerxdg-opencolumnfast-deep-clonecodestyped arraybannerprocessstringcss nestinges-shim APIglacieruninstalliteratorIteratorgetPrototypeOfparsingbeanstalkasciiencryptioncontainsenvagents3commandtermrobustObject.definePropertyschemeES2018lintcolorchromiumconsumeES2017ES2016linewrapECMAScript 3circularponyfillUint32ArraythroatimportexportinspectrestfulnumbersymlinkES7bddsetterexit-coderequiretraverseES2019picomatchdirectoryinferenceregularequalbrowserlistchaiecmascriptpasswordrmvariables in cssio-tslistenerssimpledbextraperformantchannelargparsepyyamldirUint8Arraypostcss-pluginremovextermavasigintconcurrencyInt8Arraywalktoobjectfindutilless compilerincludesreact-testing-librarytapArray.prototype.flattenflattenrmdirES5performancehasOwnPropertyuuidbindgetOwnPropertyDescriptorinstalldiffdependencieslivekeyfseventsmonorepoES3JSONoptimizerforEachmapnegative zeroArray.prototype.containsexitflatsharedgetopttrimStartbufferscreatesigtermcharacterstouchcommand-lineduplexaccessibilitylinuxpositivetoArraynamesregexpeslint-pluginirqstreams2minimalreadrateclimakesortfpsmatchessliceconcatMapbrowserslisttypelimitterminalidnegativeformsprotofromcallbackpromisesString.prototype.matchAlltelephonetswatchFilestreamwordwrapdeepclonesymlinkseventEmittertesterprotobufschemalesscsseventsprotocol-bufferspluginlinkgetterECMAScript 2019hashjshintparseES2020awsshebangcachepreprocessormergepredictablezodes5updependency managercloudtrailjsdiffwaites-shimsfast-cloneparserpackage.jsonES6typesstylesstatelesscharacterTypeScriptissetPrototypeOfoptimistTypedArrayinputworkflowtypescriptarktypestylingfile systemhttpStreamfileparentnativemake dirbusyinnope0coreendervarsvpcfetchMicrosoftassertiones6viewbootstrap lessrandomlazysuperagentjwtbundlingopenerargstslibstyleguideasserteslintreuseObservablevalidation
1.0.0

1 year ago