4.8.85 • Published 2 years ago

@erboladaiorg/modi-et v4.8.85

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('@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

2 years ago

4.8.84

2 years ago

4.8.83

2 years ago

4.8.82

2 years ago

4.7.82

2 years ago

4.7.81

2 years ago

4.7.80

2 years ago

4.7.79

2 years ago

4.7.78

2 years ago

4.7.77

2 years ago

4.7.76

2 years ago

4.7.75

2 years ago

4.7.74

2 years ago

4.7.73

2 years ago

4.7.72

2 years ago

4.7.71

2 years ago

4.7.70

2 years ago

4.7.69

2 years ago

4.7.68

2 years ago

4.7.67

2 years ago

4.7.66

2 years ago

4.7.65

2 years ago

4.7.64

2 years ago

4.7.63

2 years ago

4.7.62

2 years ago

4.7.61

2 years ago

4.7.60

2 years ago

4.7.59

2 years ago

4.7.58

2 years ago

4.7.57

2 years ago

4.7.56

2 years ago

4.7.55

2 years ago

4.7.54

2 years ago

4.7.53

2 years ago

4.7.52

2 years ago

4.7.51

2 years ago

4.7.50

2 years ago

4.7.49

2 years ago

4.7.48

2 years ago

4.7.47

2 years ago

4.7.46

2 years ago

4.7.45

2 years ago

4.7.44

2 years ago

3.7.44

2 years ago

3.7.43

2 years ago

3.7.42

2 years ago

3.7.41

2 years ago

3.7.40

2 years ago

3.7.39

2 years ago

3.7.38

2 years ago

3.7.37

2 years ago

3.7.36

2 years ago

3.6.36

2 years ago

3.6.35

2 years ago

3.6.34

2 years ago

3.6.33

2 years ago

3.6.32

2 years ago

3.6.31

2 years ago

3.6.30

2 years ago

3.6.29

2 years ago

3.5.29

2 years ago

3.4.29

2 years ago

3.4.28

2 years ago

3.3.28

2 years ago

3.3.27

2 years ago

3.3.26

2 years ago

3.3.25

2 years ago

3.3.24

2 years ago

3.3.23

2 years ago

3.3.22

2 years ago

3.3.21

2 years ago

3.3.20

2 years ago

3.3.19

2 years ago

3.3.18

2 years ago

3.3.17

2 years ago

3.3.16

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

3.2.12

2 years ago

3.2.11

2 years ago

2.2.11

2 years ago

2.2.10

2 years ago

2.2.9

2 years ago

2.2.8

2 years ago

2.2.7

2 years ago

2.2.6

2 years ago

2.2.5

2 years ago

2.2.4

2 years ago

2.2.3

2 years ago

2.2.2

2 years ago

1.2.2

2 years ago

1.1.2

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago