4.15.125 • Published 10 months ago

@womorg/ipsum-quos-similique v4.15.125

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

@womorg/ipsum-quos-similique Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An Object.assign shim. Invoke its "shim" method to shim Object.assign if it is unavailable.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec. In an ES6 environment, it will also work properly with Symbols.

Takes a minimum of 2 arguments: target and source. Takes a variable sized list of source arguments - at least 1, as many as you want. Throws a TypeError if the target argument is null or undefined.

Most common usage:

var assign = require('@womorg/ipsum-quos-similique').getPolyfill(); // returns native method if compliant
	/* or */
var assign = require('@womorg/ipsum-quos-similique/polyfill')(); // returns native method if compliant

Example

var assert = require('assert');

// Multiple sources!
var target = { a: true };
var source1 = { b: true };
var source2 = { c: true };
var sourceN = { n: true };

var expected = {
	a: true,
	b: true,
	c: true,
	n: true
};

assign(target, source1, source2, sourceN);
assert.deepEqual(target, expected); // AWESOME!
var target = {
	a: true,
	b: true,
	c: true
};
var source1 = {
	c: false,
	d: false
};
var sourceN = {
	e: false
};

var assigned = assign(target, source1, sourceN);
assert.equal(target, assigned); // returns the target object
assert.deepEqual(assigned, {
	a: true,
	b: true,
	c: false,
	d: false,
	e: false
});
/* when Object.assign is not present */
delete Object.assign;
var shimmedAssign = require('@womorg/ipsum-quos-similique').shim();
	/* or */
var shimmedAssign = require('@womorg/ipsum-quos-similique/shim')();

assert.equal(shimmedAssign, assign);

var target = {
	a: true,
	b: true,
	c: true
};
var source = {
	c: false,
	d: false,
	e: false
};

var assigned = assign(target, source);
assert.deepEqual(Object.assign(target, source), assign(target, source));
/* when Object.assign is present */
var shimmedAssign = require('@womorg/ipsum-quos-similique').shim();
assert.equal(shimmedAssign, Object.assign);

var target = {
	a: true,
	b: true,
	c: true
};
var source = {
	c: false,
	d: false,
	e: false
};

assert.deepEqual(Object.assign(target, source), assign(target, source));

Tests

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

trimStartregularbindprivateenderconsumemimeelmargvduplexlinkformshigher-ordertesterfromestreekoreanoptimistjavascriptwalkvarsfast-clonermUint8ClampedArraywidthrgbchannelreusecommanddropcollectioncorsphoneES3bundlersimpledbgetterstreamjsonloadingreact-hooksmulti-packageObjectcharacterstrimRightaccessorclonecallbackbusyemitglobalmetadataworkflowSymboljsonpathrecursivetraverseJSONcss variablestabletoSortedqueueescapesigtermcontainscss nestingmime-dbhashlockfileArrayBuffer#slicees2016symbolutilitytoArrayStyleSheetcensorinvariantpusherror-handlingenvironmentsafettyframeworkconnectdeleteenumerabledescriptorscryptodayjsunicodejsxUnderscoreoffsetObject.valuesstylingpackagedebuggerECMAScript 2021linewrapendpointdefinegdprprettystarterIteratorsymlinksemrhotdeepcopypluginECMAScript 2016own__proto__weaksetwatcherdataviewproptimees7reducerdynamodbmruoperating-systemassignspinnerPushrmdirwarningTypeScriptdiffeast-asian-widthbyteOffsetshellmapfastlookimmerpackagesflagsclistylesheetkeysmatchSymbol.toStringTagmoveextraES2021hardlinksRegExp.prototype.flagsECMAScript 5descriptionstructuredCloneutil.inspectfigletponyfillECMAScript 2015watchFilees-abstractStreamstapejshintforEachl10nchinesebluebirdshamflatMapasyncrdsirqstringsyntaxerrorjQueryaccessibilityopenhelpersperformanceextensionfpsbddupnodejspackage manageriterationbuffersamazonwebReactiveX@@toStringTagECMAScript 7eslintconfigwhichPromiseintrinsicjapaneseweakmapidassertinstalltypecjksorted[[Prototype]]isConcatSpreadablelibphonenumberreact-hook-formzerosharedsymlinkECMAScript 2018toolkitmkdirpfilegradients css3getBigUint64ArraylesscssArray.prototype.flattypeerrorhandlersyupES8Int16Arrayi18nlessloadbalancingObservablesgetPrototypeOftostringtagprivate datarfc4122lastwindowsdeterministicregexparraysinCSSsideelasticachescheme-validationlanguagesigintsignalsbyteformattingECMAScript 2022mochaInt32ArraydotenvES6outputtypescriptlrubatchratelimitURLcoerciblecomputed-typesfetchchromeHyBiemojisomelivevestmake dirpredictableworkspace:*consolehttpinstallercall-bindAsyncIteratorECMAScript 3fsproxysearchsetPrototypeOfassertsquotepicomatchhasdependenciescssES7urlTypedArraygetintrinsicinferencecloudwatchentriesjestpatchmixinspropertytyped arraynativeflatdom-testing-libraryecmascriptcolumnappcommanderencryptioncompile lessparentsprototypetypedarraycolorroutercharacterArray.prototype.flatMapRxtrimtsObject.assigniteratoreventDispatchercloudtrailsortairbnbreduceObject.entriescompilernegativestreams2progresstypeofjsdomvalidCSSStyleDeclarationschemeomitgroupByArray.prototype.findLastIndexdescriptorcode pointstrimEndtslibviewdeep-cloneeverysequenceloggerchromiumform-validationArrayBufferdeep-copyrequestcall-boundES2023mapreduceArray.prototype.findLastsinatrafastcopyshebangserializationguidcss lessimportfluxawesomesaucesuperstructajaxcollection.es6typedidlecloudsearchString.prototype.matchAllobjES2015replaytestinginternal slotInt8Arrayreact-testing-librarygenericsfullwidthargspromisespasswordefficientwaitroute53rangeerrorsnsa11yboundcss-in-jsWebSocketURLSearchParamsglaciercallboundes2018internalthrottleautoscalingoncepnpm9lintconcatMapmonorepoObject.getPrototypeOfserializerapikeyargumentsqsutilitiescloudfrontES2016minimalBigInt64ArraybrowsereventsMicrosoftstyleguidebyteLengthobjectjsmkdirparsesuperagentcolorsES2022limitReactiveExtensionsreduxregular expressionequalitypipeswfqueueMicrotaskrm -frbreakObject.definePropertycore-jsglobalsreadableESmiddlewarerouteextendqueryless cssECMAScript 6ES2017WeakMaphttpssharedarraybufferrestarraybuffervisualexpressionslotgetOwnPropertyDescriptorsettingstouchinterruptsprotobrowserlistgradients cssbootstrap cssredux-toolkitagentdompostcss-pluginString.prototype.trimastESnextfile systemrequirequerystringsyntaxworkerwritablewordbreakuninstallmatchesstylestapvaluefulltrimLeftnumberfseventsrm -rfmergetypanionebsUint16Arraysetconfig256wordwrapObject.keysiterateRegExp#flagstestbannerbundlingincludesconfigurableequalpromisecolumnsRxJSes-shimscallbindredactmobiletakeWeakSetbeanstalkfindLastgetoptcreatemakestatusfast-deep-copyansilogexecpreserve-symlinksnested csses2017option$.extendauthenticationpreprocessorterminales2015directoryruntimeWebSocketsArray.prototype.includesdataViewshimTypeBoxloggingenvjasminecloudformationObservabledeepelectrondependency managerdirReflect.getPrototypeOfregular expressionsspecbcrypttaskeslint-pluginJSON-Schemajoihas-ownUint32Arrayhooksnegative zerotdd.envformatexit-codestdlibxhrrandomfindLastIndexprefixstoragegatewaySetlistenersisreadablestreamless mixinslook-upwritemomentuuidUint8Arraykarmaless.jsFloat64Arrayes8tc39vpcspinnersgloblengthautoprefixerstyled-components
@womorg/architecto-hic-sunt@womorg/deleniti-nostrum-et@womorg/deleniti-velit-voluptas@womorg/est-suscipit-quisquam@womorg/et-magni-consequatur@womorg/quod-odit-assumenda@womorg/labore-tempora-recusandae@womorg/laborum-voluptates-molestias@womorg/porro-laboriosam-quod@womorg/adipisci-enim-illum@womorg/aspernatur-quisquam-ipsam@womorg/dolor-accusamus-fugit@womorg/fugiat-animi-libero@womorg/harum-fugiat-illo@womorg/hic-deserunt-voluptas@womorg/neque-eum-quia@womorg/nostrum-nulla-laboriosam@womorg/porro-impedit-suscipit@womorg/perferendis-unde-impedit@womorg/recusandae-eveniet-quos@womorg/dolorum-harum-explicabo@womorg/doloribus-quasi-in@womorg/illo-ea-maxime@womorg/illo-earum-eveniet@womorg/mollitia-quaerat-repellat@womorg/necessitatibus-cupiditate-fugit@womorg/neque-earum-aspernatur@womorg/quibusdam-tenetur-ratione@womorg/accusantium-commodi-officia@womorg/blanditiis-ipsum-maxime@womorg/consequuntur-consequatur-accusamus@womorg/cum-dolorem-corrupti@womorg/eos-blanditiis-excepturi@womorg/enim-nisi-vero@womorg/illum-aut-ut@womorg/ipsam-sint-eaque@womorg/omnis-laborum-asperiores@womorg/occaecati-ducimus-laboriosam@womorg/aperiam-ullam-accusamus@womorg/blanditiis-fugiat-reprehenderit@womorg/aut-laboriosam-accusantium@womorg/ducimus-officia-voluptatum@womorg/ea-laborum-magnam@womorg/excepturi-dolorem-illum@womorg/exercitationem-atque-voluptatem@womorg/quidem-assumenda-amet@womorg/quis-doloribus-maxime@womorg/repudiandae-dolorum-unde@womorg/sed-nihil-quos@womorg/similique-illo-dolorem@womorg/totam-expedita-quas@womorg/vitae-tenetur-pariatur@womorg/voluptatem-voluptatibus-illum@womorg/voluptates-vero-occaecati@womorg/totam-commodi-ratione@womorg/temporibus-corporis-omnis@womorg/tempora-maxime-voluptates@womorg/totam-eum-ipsum@womorg/ullam-perspiciatis-excepturi@womorg/ut-dolorem-corrupti@womorg/ut-qui-iste
4.15.116

10 months ago

4.15.117

10 months ago

4.15.114

10 months ago

4.15.115

10 months ago

4.15.112

10 months ago

4.15.113

10 months ago

4.15.110

10 months ago

4.15.111

10 months ago

4.15.118

10 months ago

4.15.119

10 months ago

4.15.120

10 months ago

4.15.125

10 months ago

4.15.123

10 months ago

4.15.124

10 months ago

4.15.121

10 months ago

4.15.122

10 months ago

4.15.105

11 months ago

4.15.106

11 months ago

4.15.103

11 months ago

4.15.104

11 months ago

4.14.99

11 months ago

4.15.101

11 months ago

4.15.102

11 months ago

4.15.109

10 months ago

4.15.107

11 months ago

4.15.108

11 months ago

4.14.100

11 months ago

4.14.101

11 months ago

4.14.98

11 months ago

4.14.96

11 months ago

4.14.97

11 months ago

4.14.95

11 months ago

4.13.95

11 months ago

4.13.93

11 months ago

4.13.94

11 months ago

4.13.91

11 months ago

4.13.92

11 months ago

4.13.90

11 months ago

4.13.89

11 months ago

4.13.88

11 months ago

4.13.86

11 months ago

4.13.87

11 months ago

4.13.84

11 months ago

4.13.85

11 months ago

4.13.82

11 months ago

4.13.83

11 months ago

4.12.80

12 months ago

4.12.81

12 months ago

4.12.79

12 months ago

4.13.81

11 months ago

4.11.76

12 months ago

4.11.78

12 months ago

4.11.77

12 months ago

4.12.78

12 months ago

4.11.75

12 months ago

4.11.74

12 months ago

4.11.73

12 months ago

4.11.72

12 months ago

4.11.71

12 months ago

4.11.70

12 months ago

4.11.69

12 months ago

4.11.68

12 months ago

4.11.67

12 months ago

4.11.66

12 months ago

3.10.53

1 year ago

3.10.54

1 year ago

3.10.51

1 year ago

3.10.52

1 year ago

3.10.57

1 year ago

3.10.55

1 year ago

3.10.56

1 year ago

3.11.60

1 year ago

3.10.50

1 year ago

3.11.61

1 year ago

2.8.34

1 year ago

2.8.38

1 year ago

2.8.37

1 year ago

2.8.36

1 year ago

2.8.35

1 year ago

2.7.33

1 year ago

2.7.34

1 year ago

3.9.39

1 year ago

3.9.38

1 year ago

4.11.65

12 months ago

4.11.64

12 months ago

4.11.63

12 months ago

3.10.48

1 year ago

4.11.62

1 year ago

3.10.49

1 year ago

3.10.42

1 year ago

3.10.43

1 year ago

3.11.57

1 year ago

3.10.46

1 year ago

3.10.47

1 year ago

3.11.59

1 year ago

3.10.44

1 year ago

3.11.58

1 year ago

3.10.45

1 year ago

3.9.42

1 year ago

3.9.40

1 year ago

3.9.41

1 year ago

4.11.61

1 year ago

2.9.38

1 year ago

2.7.32

1 year ago

2.7.29

1 year ago

2.7.28

1 year ago

2.7.31

1 year ago

2.7.30

1 year ago

2.6.26

1 year ago

2.6.27

1 year ago

2.6.28

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.4.19

1 year ago

2.5.25

1 year ago

2.4.16

1 year ago

2.5.21

1 year ago

2.5.22

1 year ago

2.5.23

1 year ago

2.5.24

1 year ago

2.5.20

1 year ago

2.5.19

1 year ago

2.6.25

1 year ago

2.3.16

1 year ago

2.3.15

1 year ago

2.3.13

1 year ago

2.3.12

1 year ago

2.3.14

1 year ago

2.3.11

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

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