5.6.100 • Published 11 months ago

@hishprorg/odit-nobis-ipsam v5.6.100

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

@hishprorg/odit-nobis-ipsam Version Badge

github actions coverage License Downloads

npm badge

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

Getting started

npm install --save @hishprorg/odit-nobis-ipsam

Usage/Examples

var safeConcat = require('@hishprorg/odit-nobis-ipsam');
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

readableObject.valuesoptimizerArrayBufferTypedArraydescriptionelasticacheenderglobaluuidpostcss-pluginargsArray.prototype.flatgroupasterisksPushpnpm9make dirhasOwnPropertyawsReflect.getPrototypeOfansicompilerfastcloneparentszerogetanimationrouteforEachinlanguagedataes6numberastlinewrapiepopmotionhtmlpackagesymlinkmergeECMAScript 2016ES2023parsees7arktypedeepcopynpmignoreassertionindicatorhasartstreams2concatMappostcssmochaspawnextraonceURLdataviewbundlerdomFloat64ArrayESnextreact posetesteratomeverysettingswarningassertsaccessibilitycodeslook-upECMAScript 2018Int8ArrayECMAScript 2020subprocesscode pointsJSONhelperseslintconfigguidECMAScript 2015immermodulesECMAScript 2021walkArray.prototype.findLastIndexinspectbatchchromeio-tsscheme-validationdiffmodulelimitedyuptc39flagsbinarychromiumnopejsonyamlmanipulationlogvestconcatisConcatSpreadableprotobufconfigurablethrottleStreammime-dbESdayjsresolvenpmjestjsoffsettoolscryptodom-testing-libraryObservablestestinggraphql-clientponyfillfromfastbuffersfunctionszxtransformrmregular expressionsjavascripttapehookformcallboundspinnersSymbolES3validperformancestoragegatewayUint8Arrayeast-asian-widthbddjapaneseprunecolourrecursiveterminal256descriptorelbmoveagentelectrondeletestableMicrosoftcopyurlReactiveXnamereduxvarshookscharacterfullairbnbkoreanstyleguidewaapitapcss-in-jses5loggingbluebirdcall-bindmanagerjoitoobjectschemeECMAScript 7readtrim-0StreamscontainswaitchannelhttpsclonetddrmdirloadbalancingwrapjshintECMAScript 5syntaxerrorObject.assignexecuteWebSocketcolumnsvpcpluginapollotouchcommand-linestdlibweaksetjQueryes2015dragpositivedebugwhatwgemitreuseeventsfast-deep-cloneestreeinternalunicodesimpledbbusywordbreakhasOwncommandmatchglaciergitignoreroutingpropprettyflatMapchaigetPrototypeOfES6deepcloneprivateidleenvironmentstraversemapES2018avalazyenumerabletakeES2019__proto__extendstarterbindes2018intrinsicsidereact-hooksCSSStyleDeclarationstylingsomemakefunction.lengthdefinelruduplexrangeerrorincludeseslint-pluginstyled-componentstypebeanstalkbinparsera11ypromisequerygetteridexpresspathES8package managertextpyyamlTypeScriptfullwidthECMAScript 2022trimRightpipecharacterscolumnsetterES2021loggervisualString.prototype.matchAllbundlingfilees2016l10nwordwrapschemaupsliceMapsuperstructiterateArray.prototype.flattenreal-timevariablesObjectfigletdataViewspeedpreserve-symlinkseslintplugintimesyntaxsetPrototypeOfwidth_.extendworkerkeyES5YAML.envignoreawaitredactconcurrencyWeakSetescapedirworkflowshrinkwraprandomlintcreatemkdirsdependency managerkinesisexecfilerulesdatastructurehelperfind-upautoscalingUnderscoretrimEndcloudtraillockfileparentnamesregulares-abstractutil.inspectfindupflagArrayremovegenericscore-jseslintconsoleshebanggetintrinsicRegExp#flagsrm -rfArray.prototype.containstoStringTagsqsnodejssymboldroploadingvalueObject.getPrototypeOfbrowserlistRegExp.prototype.flagsstringownsameValueZerofindLastserializationcolorscircularinternal slotespreefnmatcherrorES2022callbindexectest$.extendlooksymlinksES2015entriesfast-deep-copyfolderequalityjsdomCSScoreregular expressionES2020breakpushstringifiertslibInt16Arrayreducermomentformattingroute53identifiersweakmapspecFloat32Arraycurlsequencees-shimsinputstreamargvlocalfpsinferencees-shim APIlimitfast-clone.gitignoreregexpreact-hook-formgraphqlposevalidateArray.prototype.findLastES2017sharedarraybuffercliruntimesource mapxhrttychineseendpointperformantdeterministicclientquoteframerjsxArray.prototype.includesfile systemtypedarraysES7termconsumeWebSocketsredux-toolkitsortedtypednegative zeroprotocol-bufferseventDispatcherhttpquerystringbufferxmlbrowserslistlengthreadablestreamchildbyteLengthqueueproxyRFC-6455keysajaxtypeofsnscheckparsingObject.entriessetImmediategroupByis0reducetelephoneprocessemrasyncString.prototype.trimtypesafecloudfrontarraysarrayvaluesdeepfindcssthroatserializeshamcompareinvariantbannerdefinePropertycoerciblesetswffastcopymimetypesprogressmatchAlles2017karmabinariesfixed-widthRxJSmulti-packageassertrobustajvform-validationobjequaltypanionstringifyimportfssearchtoSortedbrowserIteratormetadataprefixsharedfeedformathashes8phoneRxcall-boundObject.keyscloudsearchreactglobalspreprocessorpropertiesformstreamsxtermstatelessfull-widthfast-copylocationeszodsesprototypereworkoptiontoArrayshellrdsPromiseenvmimeECMAScript 6package.jsonratelimitdependenciesReactiveExtensionsWeakMap
5.6.95

11 months ago

3.2.24

1 year ago

5.6.94

11 months ago

3.2.23

1 year ago

5.6.97

11 months ago

3.2.26

1 year ago

5.6.96

11 months ago

3.2.25

1 year ago

3.2.28

1 year ago

3.2.27

1 year ago

5.6.93

11 months ago

5.6.92

11 months ago

3.2.29

1 year ago

3.2.20

1 year ago

4.5.70

12 months ago

3.2.22

1 year ago

4.5.71

12 months ago

3.2.21

1 year ago

4.3.57

1 year ago

4.3.56

1 year ago

4.3.58

1 year ago

5.6.99

11 months ago

5.6.98

11 months ago

3.2.35

1 year ago

3.2.34

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.2.39

1 year ago

3.2.38

1 year ago

3.2.31

1 year ago

3.2.30

1 year ago

3.2.33

1 year ago

3.2.32

1 year ago

4.5.66

12 months ago

2.1.14

1 year ago

4.5.69

12 months ago

2.1.12

1 year ago

2.1.13

1 year ago

4.5.67

12 months ago

2.1.10

1 year ago

4.5.68

12 months ago

2.1.11

1 year ago

3.3.50

1 year ago

3.3.51

1 year ago

3.3.52

1 year ago

3.3.53

1 year ago

3.3.54

1 year ago

3.3.55

1 year ago

3.3.56

1 year ago

3.2.17

1 year ago

3.2.19

1 year ago

3.2.18

1 year ago

5.6.100

11 months ago

4.6.80

11 months ago

4.6.81

11 months ago

4.6.84

11 months ago

4.4.61

12 months ago

4.6.85

11 months ago

4.4.60

1 year ago

4.6.82

11 months ago

4.6.83

11 months ago

4.6.88

11 months ago

4.4.65

12 months ago

2.2.17

1 year ago

4.6.89

11 months ago

4.4.64

12 months ago

4.6.86

11 months ago

4.4.63

12 months ago

2.2.15

1 year ago

4.6.87

11 months ago

4.4.62

12 months ago

2.2.16

1 year ago

2.2.14

1 year ago

4.4.66

12 months ago

3.3.49

1 year ago

4.6.73

12 months ago

4.6.74

12 months ago

4.6.71

12 months ago

4.6.72

12 months ago

4.6.77

12 months ago

4.6.78

12 months ago

4.6.75

12 months ago

4.6.76

12 months ago

4.4.58

1 year ago

4.6.79

11 months ago

4.4.59

1 year ago

3.2.46

1 year ago

3.2.45

1 year ago

3.2.48

1 year ago

3.2.47

1 year ago

3.2.49

1 year ago

3.2.40

1 year ago

3.2.42

1 year ago

3.2.41

1 year ago

3.2.44

1 year ago

3.2.43

1 year ago

4.6.91

11 months ago

4.6.92

11 months ago

4.6.90

11 months ago

2.1.9

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago