9.16.101 • Published 2 years ago

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

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

2 years ago

9.16.100

2 years ago

9.16.99

2 years ago

9.16.98

2 years ago

9.16.97

2 years ago

9.16.96

2 years ago

9.16.95

2 years ago

9.16.94

2 years ago

9.16.86

2 years ago

9.16.87

2 years ago

9.16.84

2 years ago

9.16.85

2 years ago

9.16.88

2 years ago

9.16.89

2 years ago

8.14.73

2 years ago

6.7.34

2 years ago

8.14.72

2 years ago

6.7.35

2 years ago

6.7.36

2 years ago

6.7.37

2 years ago

6.7.38

2 years ago

6.7.30

2 years ago

6.7.31

2 years ago

8.14.71

2 years ago

6.7.32

2 years ago

5.3.27

2 years ago

8.14.70

2 years ago

6.7.33

2 years ago

9.16.82

2 years ago

9.16.83

2 years ago

6.7.29

2 years ago

6.9.42

2 years ago

6.9.41

2 years ago

6.9.40

2 years ago

7.12.50

2 years ago

7.12.51

2 years ago

7.12.52

2 years ago

7.12.53

2 years ago

7.12.54

2 years ago

7.12.55

2 years ago

7.12.56

2 years ago

7.12.57

2 years ago

7.12.58

2 years ago

5.5.27

2 years ago

7.12.59

2 years ago

8.14.69

2 years ago

6.5.29

2 years ago

6.5.28

2 years ago

6.5.27

2 years ago

7.12.60

2 years ago

7.12.61

2 years ago

9.15.81

2 years ago

9.15.82

2 years ago

6.11.48

2 years ago

6.11.47

2 years ago

9.15.80

2 years ago

6.11.46

2 years ago

8.13.69

2 years ago

9.15.78

2 years ago

9.15.79

2 years ago

9.15.76

2 years ago

9.15.77

2 years ago

6.6.29

2 years ago

6.8.38

2 years ago

7.13.69

2 years ago

7.13.68

2 years ago

7.13.67

2 years ago

7.13.66

2 years ago

7.13.65

2 years ago

7.13.64

2 years ago

7.13.63

2 years ago

7.13.62

2 years ago

7.13.61

2 years ago

5.4.27

2 years ago

3.3.16

2 years ago

6.9.39

2 years ago

3.3.17

2 years ago

6.9.38

2 years ago

3.3.18

2 years ago

3.3.19

2 years ago

6.10.44

2 years ago

6.10.43

2 years ago

6.10.42

2 years ago

7.11.48

2 years ago

7.11.49

2 years ago

6.10.46

2 years ago

6.10.45

2 years ago

9.14.74

2 years ago

9.14.73

2 years ago

9.14.76

2 years ago

9.14.75

2 years ago

3.3.20

2 years ago

3.3.21

2 years ago

3.3.22

2 years ago

7.11.50

2 years ago

4.3.24

2 years ago

4.3.23

2 years ago

4.3.22

2 years ago

9.16.90

2 years ago

4.3.27

2 years ago

4.3.26

2 years ago

4.3.25

2 years ago

9.16.93

2 years ago

9.16.91

2 years ago

9.16.92

2 years ago

3.3.15

2 years ago

3.3.14

2 years ago

3.3.13

2 years ago

3.2.13

2 years ago

2.2.13

2 years ago

2.2.12

2 years ago

2.2.11

2 years ago

2.2.10

2 years ago

2.1.10

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago