4.10.95 • Published 10 months ago

@patrtorg/praesentium-harum-error v4.10.95

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

@patrtorg/praesentium-harum-error Version Badge

github actions coverage License Downloads

npm badge

Array.prototype.concat, but made safe by ignoring Symbol.isConcatSpreadable

Getting started

npm install --save @patrtorg/praesentium-harum-error

Usage/Examples

var safeConcat = require('@patrtorg/praesentium-harum-error');
var assert = require('assert');

assert.deepEqual([].concat([1, 2], 3, [[4]]), [1, 2, 3, [4]], 'arrays spread as expected with normal concat');
assert.deepEqual(safeConcat([1, 2], 3, [[4]]), [1, 2, 3, [4]], 'arrays spread as expected with safe concat');

String.prototype[Symbol.isConcatSpreadable] = true;
assert.deepEqual([].concat('foo', Object('bar')), ['foo', 'b', 'a', 'r'], 'spreadable String objects are spread with normal concat!!!');
assert.deepEqual(safeConcat('foo', Object('bar')), ['foo', Object('bar')], 'spreadable String objects are not spread with safe concat');

Array.prototype[Symbol.isConcatSpreadable] = false;
assert.deepEqual([].concat([1, 2], 3, [[4]]), [[], [1, 2], 3, [[4]]], 'non-concat-spreadable arrays do not spread with normal concat!!!');
assert.deepEqual(safeConcat([1, 2], 3, [[4]]), [1, 2, 3, [4]], 'non-concat-spreadable arrays still spread with safe concat');

Tests

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

streamsRegExp#flagsshrinkwrapimmerstyletsgetPrototypeOftransportlesscssArray.prototype.findLastIndexes7curlstylingloadinggdprawssigintstylestypedarraydescriptorsexitclassnamecss lesscollection.es6endpointunicodeclonepyyamlarraybufferbcryptreplayenvsuperagentsafeslotmapsesform-validationcertificatescall-bindresolverangeerrorcontainsweaksettrimStartexpressdeep-copyspawnhandlersbufferstakefixed-widthhigher-orderObject.keysUnderscorefunction.length-0findLastIndexlintvaluegetterchromiumsetImmediatezodrecursivetoArrayarraysrobustremoveconcatreact-testing-libraryreact-hook-formbyteOffsetfullwidtherror-handlingRFC-6455functionalprototypeECMAScript 2023typed arraytoSortedreact-hooksutil.inspecteventEmittersetArray.prototype.includesdescriptionpatchfantasy-landsequenceES3ES5coercibleshellworkflowmodulemkdirpregularnamesharedJSONsymlinkscommand-linetypesES2022TypeScripthardlinksjson-schemabytedragstablequeueMicrotask6to5ECMAScript 2016opensslnopeglaciertranspileECMAScript 7bddeslint-pluginposedatemetadataeslintparseruser-streamsreversedbrowserArrayBuffer.prototype.slicetc39ansiprotocjkdeepclonepostcss-pluginwindowsmanagerfast-deep-copyArrayawesomesauceforkPushmergedynamodbi18nstarterrequireargves-shim APIsharedarraybufferhooksconsumetrimRightredactfunctionfast-deep-cloneagentclassesstatelessexit-codeswfchannelglobalsBigUint64ArraydataViewECMAScript 2020east-asian-widthestreeendernumbercopywafpropertyiteratornegativeramdabundlercolumnoperating-systembinpreprocessorpasswordbundlinghelperrapidformatsyntaxprefixmkdirsutilssetterjwtpostcsssignalasthttpsgradients css3ECMAScriptECMAScript 3live__proto__negative zeroschemeCSSStyleDeclarationdirectorykoreanshimvalidateelmsignalsimportreact animationvardotenvacorntimesomeelasticachespringES8cloudformationloggerregexefficientES2023internal slotlengtheffect-tscompilera11ybootstrap cssobjrdsfile systemruntimeeventsaccessibilitysettingsjsdiffECMAScript 5enumerableaccessorESnextsubprocessrouterulesObservablesindicatoridentifiersArray.prototype.containspipeextendlrufigletFloat32ArrayebstrimEndUint8ClampedArrayregexpwaapireactloggingpurecensorequalfindpathfilterclass-validatorkeyString.prototype.trimmakepreserve-symlinksamazonassertionbusysymlinkdataxhrphonetostringtagoffsetECMAScript 2019ReactiveExtensionsurltypeeventDispatcherSymbolsideparsemulti-packageequalitythreeglobal objectwindow[[Prototype]]eslintconfigpredictableformattingsorteddeepcopyuploadgettslibecmascriptArray.prototype.filterlazyboundBigInt64Arraymonoreponamesglobal this valuepruneInt8ArraycallbackgetoptStreamfromspinnerlessshamdatastructureprotobufwaitdependency managerforEachwhatwg_.extendes2015everyparsinginterruptsgitignoresignednativees-abstracttesterinpackage.jsoncsssyntaxerrorprotocol-buffersnpmECMAScript 2015css variablebabelgroupchaiObservableRegExp.prototype.flagsassertformsprettycolourtoobjectextrasqsgraphqlcloudsearchIteratorTypedArraymomentsuperstructnpmignorequeueES2015genericsoptionpopmotionyuptraversees6executecolorsreact-componentguidstoragegatewaytypedarrayscreatepromiseless.jsES2021Array.prototype.flattenvalidatorfilegetOwnPropertyDescriptortddspinnersArrayBufferfull-widthintrinsicshebangvarsbufferUint32Arrayselfvariables in csstranspilerclienttypeerrormake dirObject.getPrototypeOfpositiveiterateisConcatSpreadableglobstatusbyteLengthyamljQuerycommandpolyfillless compilercheckfullpinoanimationregular-expressiondependenciesroute53logString.prototype.matchAllconsoleUint16Arraybannercore-jsinspectajvasciidirFunction.prototype.namesameValueZeromacosES2016persistentdropproxySystem.globalbootstrap lesssnsinvariantfindLastemitvariablesfastifypoint-freematchescallfunctionsomitArray.prototype.flatMapwhichutilityapihasOwnloadbalancingclassnamesscheme-validationes2018httpdom-testing-libraryapolloajaxttyprivateSetzxstateESsymbolserializationdomjson-schema-validatoruuidmatchdiffconcatMapairbnboutputsigtermgetintrinsicdayjsauthenticationarraybinarydeepjoiCSSlocaljshintfsec2fast-copystyled-componentsl10nworkspace:*progressObject.fromEntriesWebSocketswalkowntoReversedjavascriptnested cssstringifytypesafecloudfrontgroupByelectronmkdirHyBirfc4122Int32Arraycloudwatchencryptiontextflattencss-in-jstypanionfastcloneURLObject.definePropertycomputed-typeshotflatMaprfc9562reverseslicecallbounditerationcryptreact poseuninstallserializeexecfilepushincludesreadinputes8Reflect.getPrototypeOfpropreadablestreamserializertacitflagsnodeio-tsmixinsECMAScript 2017stringhasOwnProperty
4.10.94

10 months ago

4.10.95

10 months ago

4.10.93

10 months ago

4.10.92

10 months ago

4.9.92

10 months ago

4.9.91

10 months ago

4.9.90

10 months ago

4.9.89

10 months ago

4.9.88

10 months ago

3.9.88

10 months ago

3.9.87

10 months ago

3.9.86

10 months ago

3.9.85

10 months ago

3.9.84

10 months ago

3.9.83

10 months ago

3.9.82

10 months ago

3.9.81

10 months ago

3.8.81

10 months ago

3.7.81

10 months ago

3.6.81

10 months ago

3.6.80

10 months ago

3.6.79

11 months ago

3.6.78

11 months ago

2.6.78

11 months ago

2.6.77

11 months ago

2.6.76

11 months ago

2.6.75

11 months ago

2.6.74

11 months ago

2.6.73

11 months ago

2.6.72

11 months ago

2.6.71

11 months ago

2.6.70

11 months ago

2.6.69

11 months ago

2.6.68

11 months ago

1.6.68

11 months ago

1.6.67

11 months ago

1.6.66

11 months ago

1.6.65

11 months ago

1.6.64

11 months ago

1.6.63

11 months ago

1.5.63

11 months ago

1.5.62

11 months ago

1.5.61

11 months ago

1.4.61

11 months ago

1.4.60

11 months ago

1.4.59

11 months ago

1.3.59

11 months ago

1.3.58

11 months ago

1.3.57

11 months ago

1.2.57

11 months ago

1.2.56

11 months ago

1.2.55

12 months ago

1.2.54

12 months ago

1.2.53

12 months ago

1.2.52

12 months ago

1.2.51

12 months ago

1.2.50

12 months ago

1.2.49

12 months ago

1.2.48

12 months ago

1.1.48

12 months ago

1.1.47

12 months ago

1.1.46

12 months ago

1.1.45

12 months ago

1.1.44

12 months ago

1.1.43

12 months ago

1.1.42

12 months ago

1.1.41

12 months ago

1.1.40

12 months ago

1.1.39

12 months ago

1.1.38

12 months ago

1.1.37

12 months ago

1.1.36

1 year ago

1.1.35

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