4.10.95 • Published 12 months ago

@patrtorg/praesentium-harum-error v4.10.95

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

12 months ago

4.10.95

12 months ago

4.10.93

12 months ago

4.10.92

1 year ago

4.9.92

1 year ago

4.9.91

1 year ago

4.9.90

1 year ago

4.9.89

1 year ago

4.9.88

1 year ago

3.9.88

1 year ago

3.9.87

1 year ago

3.9.86

1 year ago

3.9.85

1 year ago

3.9.84

1 year ago

3.9.83

1 year ago

3.9.82

1 year ago

3.9.81

1 year ago

3.8.81

1 year ago

3.7.81

1 year ago

3.6.81

1 year ago

3.6.80

1 year ago

3.6.79

1 year ago

3.6.78

1 year ago

2.6.78

1 year ago

2.6.77

1 year ago

2.6.76

1 year ago

2.6.75

1 year ago

2.6.74

1 year ago

2.6.73

1 year ago

2.6.72

1 year ago

2.6.71

1 year ago

2.6.70

1 year ago

2.6.69

1 year ago

2.6.68

1 year ago

1.6.68

1 year ago

1.6.67

1 year ago

1.6.66

1 year ago

1.6.65

1 year ago

1.6.64

1 year ago

1.6.63

1 year ago

1.5.63

1 year ago

1.5.62

1 year ago

1.5.61

1 year ago

1.4.61

1 year ago

1.4.60

1 year ago

1.4.59

1 year ago

1.3.59

1 year ago

1.3.58

1 year ago

1.3.57

1 year ago

1.2.57

1 year ago

1.2.56

1 year ago

1.2.55

1 year ago

1.2.54

1 year ago

1.2.53

1 year ago

1.2.52

1 year ago

1.2.51

1 year ago

1.2.50

1 year ago

1.2.49

1 year ago

1.2.48

1 year ago

1.1.48

1 year ago

1.1.47

1 year ago

1.1.46

1 year ago

1.1.45

1 year ago

1.1.44

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.39

1 year ago

1.1.38

1 year ago

1.1.37

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