4.8.85 • Published 11 months ago

@erboladaiorg/modi-et v4.8.85

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('@erboladaiorg/modi-et');

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

validate3dchaitermFloat64ArraytypesJSON-Schemastylesarraybufferamazonfindformattingdatattyeslintcodestscloudfrontstreamsreplayviewprototostringtages2016fantasy-land.gitignorejQuerycssbinfastwindowsback-endenvunicodeescapeconstserializerdom-testing-librarystyleguideindicatorsidetypeerrorpatchprocessentriesworkspace:*ES2016comparesetPrototypeOfphoneprogresssnscall-bindpostcss-pluginES3ECMAScript 6findLast_.extendrecursivetacitES7eventEmitterArray.prototype.findLastIndexRxspinnersfluxjavascriptchannelemrenvironmentsdefineframerinterruptscss variableReactiveXMaprequestinputMicrosoftcallassertionacornjoiinfastcloneec2validES2018accessorasterisksmakefileajvloadingcall-boundjapanesebindexecutecoregetPrototypeOfmanagerReactiveExtensionsapiseslessjestbddgesturescolumnselectronworkerArrayBufferoptimizera11yformathelpersqslogwriteECMAScript 2018nested csssequenceEShasOwnPropertyparserregexppurezeroendpointsuperstructpersistentgdprinvariantweakmapES2021css nestinggitignoremerge.envECMAScript 2017circularprefixfastcopyURLequalityObject.fromEntriesfast-copychineseimmutablefast-deep-copysyntaxerrorargvsettercloudsearchglobalsreact-testing-libraryglobtraversecompilersignaljshint256trimLeftfullwidthlockfileSymbol.toStringTagflagses2017PushHyBicomputed-typesidlesymlinkslesscssextraslotmkdirselmarrayeslintpluginredirectjsxramdadotenvjwtshrinkwrapstylingquerystringloggerfetchUint16ArrayECMAScript 2015toolkitestreeeslint-plugincloudtrailreuseoptimistwindowInt16Arraykey-0dragsameValueZeroreact-componentobjfscommanderexpressponyfillTypeBoxpromiseurlshelltesterror-handlingimportexportvarvestlibphonenumbergetterpropertiesschemejsonxtermmocklanguageconfigArrayBuffer#sliceauthenticationjson-schemarobustcallboundeslivexhrpreserve-symlinksapollotelephoneperformantworkflowArray.prototype.flattenstarterfilterfpsoptionanimationmetadatatesterclass-validatorglobal this valuetddhelpersStyleSheetfullprotocol-bufferssharedbufferstypeofUnderscoreimportvariablesformlistenersscheme-validationreadablestreamURLSearchParamscallbacksignalsenderwgetreal-timeyamlECMAScript 2019accessibilityintrinsicregularfastifyuser-streamschildperformanceastnegativegroupByObject.getPrototypeOfjsdomUint8ClampedArraytypedarraysmaplinuxnamesieregular-expressionlinkprettyschemaqueueMicrotaskmkdirfigletbeanstalkmacosCSSYAMLsymbolsObservableconsolematchesUint8Arrayflatbusyharmonycloudformationgroupdirectoryarrayschromedeterministicbytegradients css3selfbinaryrequirediffnopeWebSocket
4.8.85

11 months ago

4.8.84

11 months ago

4.8.83

11 months ago

4.8.82

11 months ago

4.7.82

11 months ago

4.7.81

11 months ago

4.7.80

11 months ago

4.7.79

11 months ago

4.7.78

11 months ago

4.7.77

11 months ago

4.7.76

11 months ago

4.7.75

11 months ago

4.7.74

11 months ago

4.7.73

11 months ago

4.7.72

11 months ago

4.7.71

11 months ago

4.7.70

11 months ago

4.7.69

11 months ago

4.7.68

11 months ago

4.7.67

11 months ago

4.7.66

11 months ago

4.7.65

11 months ago

4.7.64

11 months ago

4.7.63

11 months ago

4.7.62

11 months ago

4.7.61

11 months ago

4.7.60

11 months ago

4.7.59

12 months ago

4.7.58

12 months ago

4.7.57

12 months ago

4.7.56

12 months ago

4.7.55

12 months ago

4.7.54

12 months ago

4.7.53

12 months ago

4.7.52

12 months ago

4.7.51

12 months ago

4.7.50

12 months ago

4.7.49

12 months ago

4.7.48

12 months ago

4.7.47

12 months ago

4.7.46

12 months ago

4.7.45

12 months ago

4.7.44

12 months ago

3.7.44

12 months ago

3.7.43

12 months ago

3.7.42

12 months ago

3.7.41

12 months ago

3.7.40

1 year ago

3.7.39

1 year ago

3.7.38

1 year ago

3.7.37

1 year ago

3.7.36

1 year ago

3.6.36

1 year ago

3.6.35

1 year ago

3.6.34

1 year ago

3.6.33

1 year ago

3.6.32

1 year ago

3.6.31

1 year ago

3.6.30

1 year ago

3.6.29

1 year ago

3.5.29

1 year ago

3.4.29

1 year ago

3.4.28

1 year ago

3.3.28

1 year ago

3.3.27

1 year ago

3.3.26

1 year ago

3.3.25

1 year ago

3.3.24

1 year ago

3.3.23

1 year ago

3.3.22

1 year ago

3.3.21

1 year ago

3.3.20

1 year ago

3.3.19

1 year ago

3.3.18

1 year ago

3.3.17

1 year ago

3.3.16

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

3.2.12

1 year ago

3.2.11

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

1.2.2

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago