3.10.92 • Published 10 months ago

@diotoborg/optio-tempora-impedit v3.10.92

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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('@diotoborg/optio-tempora-impedit');

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

walktoobjectinputString.prototype.trimeslinteventDispatcherassignimmerSetexit-codebyteOffsetSymbolTypeScriptrulessyntaxpostcssrequestRxJSgetoptTypeBoxcryptoownless mixinsregular expressionObject.ismanagerstreamseventsdataerrorAsyncIteratorpinoconsumeflattenpurereact-testing-libraryfpgenericsimportjwtbinaryreusestylemetadatachannellockfileprefixtrimEndproxyasterisksES2018functionalECMAScript 6framerchaiArray.prototype.includesastworkspace:*parsingRegExp#flagsacornbufferfull-widthtoReversedarraybuffercollectiondefinePropertyarktypevalidationnpmES2019react posedropesObject.valuespose@@toStringTagUint32Arrayweaksetkeyirqjson-schema-validationStreamcommandstatelessHyBiCSSStyleDeclarationvisualjoiURLchinesewarningformsReactiveXdescriptiondataviewES6classesenvironmentstarterdeep-copyECMAScript 2022core-jslibphonenumberArraytoolsdeterministicESnextkinesisECMAScript 2020eslintconfiglintECMAScript 3Int8ArraySystem.globalJSON-SchemafindLastIndexmapreduceterminalObject.definePropertyspinneriamprivate datareact animationfunctionsortedidentifiersgetbrowserlistObservablesharmonyjshintsetPrototypeOfpoint-freeenvironmentsrobustexpressioncolourjestnumberlrustringifyes2015consoleES5typed arraypreserve-symlinkspositiveArray.prototype.flatMaplanguageclassnameswriteJSONdynamodbglobtraverseserializationspeedruntimeObject.getPrototypeOf256moduleglobal this valuedependency managerextendfiltershellmacosgdprrdsPushbrowserclonea11yexpressless cssStyleSheetstatesequenceUint16ArraysharedflagscloudwatchisConcatSpreadablefantasy-landmixinsroutingglobalThistranspilercompileres-shim APIspecpredictablerandomdeep-clonecss lessassertionarraytoolkiteslint-pluginqueueMicrotaskelbsigintReactiveExtensionseveryrecursivewafECMAScript 2016fastifytoArraytakelesscssloggersyntaxerrorpropertiesurlpasswordpluginresolveUint8ArrayECMAScript 7shrinkwrapttyRFC-6455package managertypescriptidlevalidprogresscloudfrontcliweakmapBigUint64Arraybabeles-abstractgradients cssfullfindLastschemabyteclass-validatormulti-packagefast-deep-copyl10nxtermgraphqlgradients css3hasOwnPropertybindmakechildes2018stylesheetnamePromiseiterationdomdragutilindicatorcreateArrayBuffer.prototype.slicemonorepocertificatescoercibleelmcomputed-typescurriedmergetoSortedajaxloadbalancinguninstalltrimStartreact-hook-form__proto__has-ownboundtypedcssdayjsassertnodeWebSocketwidthpackagesnested csswindowsbeanstalkes7propobjclassnamemkdirsargumentWebSocketscodesebsreducehasreadablewritablejsonschemahigher-orderreadablestreamquoterfc4122
3.10.92

10 months ago

3.10.91

10 months ago

3.10.90

10 months ago

3.10.89

10 months ago

3.10.88

10 months ago

3.9.88

10 months ago

3.8.88

10 months ago

3.8.87

10 months ago

3.8.86

10 months ago

3.8.85

10 months ago

3.8.84

10 months ago

3.8.83

10 months ago

3.8.82

10 months ago

3.8.81

10 months ago

3.8.80

10 months ago

2.8.80

11 months ago

2.8.79

11 months ago

2.8.78

11 months ago

2.8.77

11 months ago

2.8.76

11 months ago

2.8.75

11 months ago

1.8.75

11 months ago

1.8.74

11 months ago

1.8.73

11 months ago

1.8.72

11 months ago

1.8.71

11 months ago

1.7.71

11 months ago

1.7.70

11 months ago

1.7.69

11 months ago

1.7.68

11 months ago

1.7.67

11 months ago

1.7.66

11 months ago

1.6.66

11 months ago

1.6.65

11 months ago

1.6.64

11 months ago

1.6.63

11 months ago

1.6.62

11 months ago

1.6.61

11 months ago

1.6.60

11 months ago

1.6.59

11 months ago

1.6.58

11 months ago

1.6.57

11 months ago

1.6.56

11 months ago

1.5.56

11 months ago

1.5.55

11 months ago

1.5.54

12 months ago

1.5.53

12 months ago

1.5.52

12 months ago

1.5.51

12 months ago

1.5.50

12 months ago

1.5.49

12 months ago

1.5.48

12 months ago

1.5.47

12 months ago

1.5.46

12 months ago

1.5.45

12 months ago

1.5.44

12 months ago

1.5.43

12 months ago

1.5.42

12 months ago

1.5.41

12 months ago

1.5.40

12 months ago

1.5.39

12 months ago

1.5.38

12 months ago

1.5.37

12 months ago

1.5.36

12 months ago

1.5.35

12 months ago

1.5.34

1 year ago

1.5.33

1 year ago

1.5.32

1 year ago

1.5.31

1 year ago

1.5.30

1 year ago

1.5.29

1 year ago

1.5.28

1 year ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.26

1 year ago

1.4.25

1 year ago

1.4.24

1 year ago

1.4.23

1 year ago

1.4.22

1 year ago

1.4.21

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

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

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago