9.16.101 • Published 11 months ago

@devtea2026/fuga-non-blanditiis-sed v9.16.101

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

ArrayBuffer.prototype.slice Version Badge

github actions coverage License Downloads

npm badge

An ES spec-compliant ArrayBuffer.prototype.slice shim. Invoke its "shim" method to shim ArrayBuffer.prototype.slice if it is unavailable.

This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the spec.

Most common usage:

var assert = require('assert');
var slice = require('@devtea2026/fuga-non-blanditiis-sed');

var ab = new ArrayBuffer(1);
var arr = new Uint8Array(ab);
arr[0] = 123;

var ab2 = slice(ab);

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

if (!ArrayBuffer.prototype.transfer) {
	slice.shim();
}

var ab2 = ab.slice();

var arr2 = new Uint8Array(ab2);
arr2[0] = 234;

assert.deepEqual(arr, new Uint8Array([123]));
assert.deepEqual(arr2, new Uint8Array([234]));

Tests

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

es7Symbol.toStringTagsigintoncelinkreal-timequeueMicrotaskObject.valuesdescriptorssharedarraybuffererror-handlingrm -rfutilitiesvalidframework0propertyECMAScript 2016setserializerpreprocessorredactreadablewarninginspectdebugES2018optimistMicrosoftyamlmkdirsworkspace:*spec.envweaksetprocessArray.prototype.flattenforEachcheckes2018defineregexbatchgetterECMAScript 7chromiumeditorlookjavascriptcomparebcryptredux-toolkitlistenersphonedirstartString.prototype.matchAlluuidelectronArray.prototype.findLastshebangagentconcatnameReactiveExtensionsmapHyBiexecutablecomputed-typesrequestgdprTypeScriptlanguageUint32Arrayvalidatefilteres8hotelmequalityeventsECMAScript 2020-0StreamtoArraysyntaxcircularsetterhas-ownstyleenvrfc4122formattingkeyguidvariables in csstimefindserializationES2020routernodemodulelintECMAScript 2017outputenvironmentsfind-upcloudformationspinnerkoreanxhrTypeBoxeveryarrayform-validationthroatbootstrap cssappfast-copyclassesclassnamestypessortspawncliapienumerableimportshelltrimStartutil.inspectcss-in-jshttpinternal slotquerystringcharacterfast-deep-cloneless cssinterruptsclass-validatordiffcurlextravesttddrestfulUnderscorewritablehookformtesterReactiveXloadbalancingsignalsESpathrmdom-testing-libraryfull-widthcharactersurlscolorsless compilerargumentssetImmediatelimitedmodulesSetvpcqueuefsES2016ES2021jsonglacierECMAScript 2021esparsingchannelreactopensformatcollectionconfigurablejasminebuffersnodejspropertiessyntaxerrorasciiansiiterateeventDispatcherparentObject.definePropertymiddlewareomitESnextBigUint64Arraywgetes-shimsnamesarraybufferhigher-orderinvariantgradients cssArray.prototype.filterES3japanesebreakkinesisES2023ES7symbolsformspackage.jsonparentshashArray.prototype.containswindowssideReflect.getPrototypeOfspinnersi18nescapelruclassnameauthhandlersfasttypanionidlemergematchStyleSheetjsdomlessvariablesbrowseriterationec2ECMAScript 2023l10ncontainsprotocol-buffersJSON-Schemareplayargvcodesartstringifyclonefunctionhttpscallbindprunegradients css3elasticachesearchstreamseslintpluginfolderwatchingRxES2022stringifierflatMapsuperagentupconsumeendpointUint8ClampedArrayfindLastIndexpicomatchpipegetPrototypeOfsymlinksreact-hookschromemacoslogMapwritedeep-copyassertionfast-deep-copypassworddebuggerdeletearrays_.extendpostcss-pluginawssetPrototypeOfmetadataawesomesauceuninstallUint8ArraydateintrinsicimportexportopenWeakSetsettingsduplexyupkeystoSortedtoolkitcore-jsvisualparserstarterconsolesafeprototypetoobjectwatchFileIteratorlinuxpreserve-symlinksdependency managerchildprivate dataamazonformidpatcha11yemrshrinkwrapimmerfpsinstallercreateio-tssequenceasynces5packageString.prototype.trimcommand-linepromisesbundlingcoreWebSocketdeepcopyautoscalingcloudtrailmomentweakmaprgbArray.prototype.includesfullBigInt64ArraytelephonestdlibdirectorymakeflatastdataArray.prototype.flatrandomdeepnativequotetapelazyprivatebytenpminstall@@toStringTagresolvesymbolObject.keysfilepositiveObject.entriesjsonpathcacheparsejoisuperstruct__proto__regexpsameValueZerowaitrobust$.extendqueryCSSStyleDeclarationhasOwnPropertyfromemojiexit-codesqsminimalargparsedescriptionpluginfile systemstreamfast-clonelaunchbootstrap lessruntimeperformantoperating-systemInt32ArraydataviewtoStringTagextendassignmrutextdynamodbcryptjshintsortedPromisemime-dbmovees-abstractcensorconcatMapschemadescriptorgetopttestingslicetakepropwhichpolyfillwordbreakpostcsslibphonenumberAsyncIteratorpushcall-boundebssesutilInt16Arraysinatraes6nested csscssoptimizerrapidstylesconcurrencydatastructureponyfillzodajvStreamsxtermbyteOffsetassertsbindprotobufFloat32ArraygroupByargumentprefixtc39entriesttyeventEmitterexitidentifierscoercibleemitRegExp#flagsRFC-6455watchvaluetssnsmixinsrdsmkdircopyObject.assignworkflowfetchlimitstylesheetconfiglockfilehooksspeedECMAScript 3xdgtrimLeftbufferUint16ArrayArrayBuffer.prototype.slicevarscloudwatchcryptoexpressionautoprefixerwalklastregular expressionsmimesimpledb256URLnopeindicatormatchestrimEndArray.prototype.findLastIndexglobES2015mochaObject.getPrototypeOfloadinggetOwnPropertyDescriptoroptionqss3globalawaittestbannertypesafecallkarmareducerCSSpackage managersigtermArrayBuffer#sliceperformanceURLSearchParamsWebSocketsjscolourmapreduceArray.prototype.flatMapschemeFunction.prototype.namemulti-packageECMAScript 2019columnslinewrapmatchAllreact-testing-librarywrapexecwebsitees2017functionsdomnegativemkdirpoffsetbrowserslistdotenvcmdrestlook-updefinePropertyarktypeinternaltermRegExp.prototype.flagsauthenticationurlcss variableObservablescloudfronttypeofcompilerObject.isobjfastcopystatusrangeerrorcall-bindloggerimmutablermdirJSONerrorInt8ArraytostringtagtraverseECMAScript 2022taskeslint-pluginES6reades2015persistentnegative zerocommandtapterminaltypecompile lessECMAScript 2018jQueryprettyObjectECMAScript 6Object.fromEntriesbrowserlistavacolorassertinwhatwgregular expressionreuseisstreams2trimRightestreeiamecmascriptPushstablefullwidthbddArrayBufferairbnbwalkingxdg-openjsdiffregularpromisestateaccessibilitydefaultslotstyleguideshamefficienttrimglobalsfluxbluebirdES2017workerutilityfindupcss lessmobileinputsharedenderserializegettouchSymbolsymlinkYAMLrequireexpressprogressgenericscallboundincludesfastifyrm -freslintconfigswfreduxECMAScript 5hasstatelessreadablestreamnumber
9.16.101

11 months ago

9.16.100

11 months ago

9.16.99

11 months ago

9.16.98

11 months ago

9.16.97

11 months ago

9.16.96

11 months ago

9.16.95

11 months ago

9.16.94

11 months ago

9.16.86

11 months ago

9.16.87

11 months ago

9.16.84

11 months ago

9.16.85

11 months ago

9.16.88

11 months ago

9.16.89

11 months ago

8.14.73

12 months ago

6.7.34

1 year ago

8.14.72

12 months ago

6.7.35

1 year ago

6.7.36

1 year ago

6.7.37

1 year ago

6.7.38

1 year ago

6.7.30

1 year ago

6.7.31

1 year ago

8.14.71

12 months ago

6.7.32

1 year ago

5.3.27

1 year ago

8.14.70

12 months ago

6.7.33

1 year ago

9.16.82

12 months ago

9.16.83

11 months ago

6.7.29

1 year ago

6.9.42

1 year ago

6.9.41

1 year ago

6.9.40

1 year ago

7.12.50

1 year ago

7.12.51

1 year ago

7.12.52

1 year ago

7.12.53

1 year ago

7.12.54

1 year ago

7.12.55

1 year ago

7.12.56

1 year ago

7.12.57

1 year ago

7.12.58

1 year ago

5.5.27

1 year ago

7.12.59

1 year ago

8.14.69

12 months ago

6.5.29

1 year ago

6.5.28

1 year ago

6.5.27

1 year ago

7.12.60

1 year ago

7.12.61

1 year ago

9.15.81

12 months ago

9.15.82

12 months ago

6.11.48

1 year ago

6.11.47

1 year ago

9.15.80

12 months ago

6.11.46

1 year ago

8.13.69

12 months ago

9.15.78

12 months ago

9.15.79

12 months ago

9.15.76

12 months ago

9.15.77

12 months ago

6.6.29

1 year ago

6.8.38

1 year ago

7.13.69

12 months ago

7.13.68

12 months ago

7.13.67

1 year ago

7.13.66

1 year ago

7.13.65

1 year ago

7.13.64

1 year ago

7.13.63

1 year ago

7.13.62

1 year ago

7.13.61

1 year ago

5.4.27

1 year ago

3.3.16

1 year ago

6.9.39

1 year ago

3.3.17

1 year ago

6.9.38

1 year ago

3.3.18

1 year ago

3.3.19

1 year ago

6.10.44

1 year ago

6.10.43

1 year ago

6.10.42

1 year ago

7.11.48

1 year ago

7.11.49

1 year ago

6.10.46

1 year ago

6.10.45

1 year ago

9.14.74

12 months ago

9.14.73

12 months ago

9.14.76

12 months ago

9.14.75

12 months ago

3.3.20

1 year ago

3.3.21

1 year ago

3.3.22

1 year ago

7.11.50

1 year ago

4.3.24

1 year ago

4.3.23

1 year ago

4.3.22

1 year ago

9.16.90

11 months ago

4.3.27

1 year ago

4.3.26

1 year ago

4.3.25

1 year ago

9.16.93

11 months ago

9.16.91

11 months ago

9.16.92

11 months ago

3.3.15

1 year ago

3.3.14

1 year ago

3.3.13

1 year ago

3.2.13

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.1.10

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

1 year ago

1.1.3

1 year ago