4.8.85 • Published 12 months ago

@erboladaiorg/modi-et v4.8.85

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

12 months ago

4.8.84

12 months ago

4.8.83

12 months ago

4.8.82

12 months ago

4.7.82

12 months ago

4.7.81

12 months ago

4.7.80

1 year ago

4.7.79

1 year ago

4.7.78

1 year ago

4.7.77

1 year ago

4.7.76

1 year ago

4.7.75

1 year ago

4.7.74

1 year ago

4.7.73

1 year ago

4.7.72

1 year ago

4.7.71

1 year ago

4.7.70

1 year ago

4.7.69

1 year ago

4.7.68

1 year ago

4.7.67

1 year ago

4.7.66

1 year ago

4.7.65

1 year ago

4.7.64

1 year ago

4.7.63

1 year ago

4.7.62

1 year ago

4.7.61

1 year ago

4.7.60

1 year ago

4.7.59

1 year ago

4.7.58

1 year ago

4.7.57

1 year ago

4.7.56

1 year ago

4.7.55

1 year ago

4.7.54

1 year ago

4.7.53

1 year ago

4.7.52

1 year ago

4.7.51

1 year ago

4.7.50

1 year ago

4.7.49

1 year ago

4.7.48

1 year ago

4.7.47

1 year ago

4.7.46

1 year ago

4.7.45

1 year ago

4.7.44

1 year ago

3.7.44

1 year ago

3.7.43

1 year ago

3.7.42

1 year ago

3.7.41

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