4.14.77 • Published 10 months ago

@taktikorg/quo-earum v4.14.77

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('@taktikorg/quo-earum');

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

deterministicajvWebSocketArray.prototype.findLastclass-validatorweaksetflattena11yauthtoolkitvalidation256tslibecmascriptsimpledbpureassertionbinariesruntimeprototypeES7tostringtagfullwidthendpointglobal this valueYAMLless compilerbyteOffsetmake dircomparegetopttoArrayArray.prototype.includesArray.prototype.flatMapassignArray.prototype.findLastIndexmodulescolorswgetdeep-cloneObject.keyschaiInt16ArraysubprocesseveryfetchUnderscorebabel-corecurltoolsclientdynamodbisserializenopeglacierformatES2020argsramdacolourfilepicomatchswf-0cloudwatchless.jsjsdomES2015gethotloggingmergespinnerdependenciesinspectpreprocessores-shimstscopyinstallreact-testing-librarycollection.es6isConcatSpreadableinferencestreamsES2022immermobileutilconfigurablevalidatorArrayBuffer.prototype.slicegenericscheckIteratorquerystringArrayBufferawesomesauceeslintpackage managerback-end[[Prototype]]diffttyfull-widthdomforkjson-schemai18nObservableprivateURLSearchParamsenvironmentsECMAScript 6byteLengthtypedarrayefficientCSSStyleDeclarationeslint-pluginObject.getPrototypeOf__proto__deep-copyreuseECMAScript 2022progressTypeBoxassertspino.gitignoretc39sharedhelperssignedRegExp#flagsviewhasaccessibilityroute53popmotionsetPrototypeOfpromiserdsUint8ClampedArraytrimRightqsflagdependency managerterminalownbusyhashimportexportfpsreadablebrowserslistprefixconcatcorelaststyleguidees-abstractstylesheetcryptolinux_.extendsigintbufferinterruptstermiteratoromitES2017emitpruneespreeregular-expressionliveelasticachesigtermnegativepoint-freeReflect.getPrototypeOfRFC-6455gradients cssconsumestringifierstyled-componentsschemeexpresspropertydeepcopybuffersStreamsshrinkwrapimmutableconsoletouchponyfillproxysortedcssdatacore-jsECMAScript 2017variablesaccessortoobjectfixed-widthdropirqprivate datafunctionses2015jshintawstypescriptredactkeysgradients css3libphonenumbersomemkdires5ES2023JSONequalityartindicatorcss nestingclassesextendprotopredictablegetOwnPropertyDescriptorFloat64Arrayes6redux-toolkittypesafeoptimizerregularincludesfindLastreact-hook-formsuperstructeventDispatcherargumentsetECMAScript 5BigUint64ArrayconstsignalbindprettyECMAScript 2019statelessless csssideopensslec2fromvarhasOwnparserlinkpnpm9fnmatchtranspilerpackageswaitwidthObject.assignhas-ownnameskeySetstructuredCloneerrorchinesecallbindcontainsnameelectronObject.definePropertyexecuteroutepackage.jsonformattingstarterHyBicallboundString.prototype.matchAlldescriptorstypanionrobustchanneljson-schema-validationoperating-systempersistentcircularObject.fromEntriesweakmaprequestspeeddatedatastructuresyntaxnegative zerojssqstakees-shim APIbeanstalkJSON-SchemaformjsonschemaReactiveExtensionselbhandlernumberstateless mixinslesscsscollectionchromiumintrinsicfast-cloneflatenderbannerpostcsscallbacksettingsmodulegettersharedarraybufferTypeScripthandlersfastcopyiteratedragreactposetypeerrordeepvariables in cssequalsignalsfast-deep-cloneinstallerharmonyECMAScript 3cloudsearchfunctionArrayvisualflagshttpsmatchworkflowcreateloggereast-asian-widthStyleSheetfastifyECMAScript 2016ansiregexpTypedArrayeslintpluginmakenested cssdeepcloneevents
4.14.77

10 months ago

4.14.76

10 months ago

4.14.75

10 months ago

4.13.75

10 months ago

4.13.74

10 months ago

4.12.74

11 months ago

4.12.73

11 months ago

4.12.72

11 months ago

4.11.72

11 months ago

4.11.71

11 months ago

4.11.70

11 months ago

4.11.69

11 months ago

4.11.68

11 months ago

4.11.67

11 months ago

4.11.66

11 months ago

4.11.65

11 months ago

4.10.65

11 months ago

4.10.64

11 months ago

4.10.63

11 months ago

4.10.62

11 months ago

4.10.61

11 months ago

4.9.61

11 months ago

4.9.60

11 months ago

4.9.59

11 months ago

4.9.58

11 months ago

4.9.57

11 months ago

4.9.56

11 months ago

4.8.56

11 months ago

4.8.55

11 months ago

4.8.54

11 months ago

4.8.53

11 months ago

4.8.52

11 months ago

4.8.51

11 months ago

4.8.50

11 months ago

4.8.49

11 months ago

4.8.48

12 months ago

4.7.48

12 months ago

4.7.47

12 months ago

4.6.47

12 months ago

4.6.46

12 months ago

4.6.45

12 months ago

4.6.44

12 months ago

4.6.43

12 months ago

4.6.42

12 months ago

3.6.42

12 months ago

3.6.41

12 months ago

3.6.40

12 months ago

3.6.39

12 months ago

2.6.39

12 months ago

2.6.38

12 months ago

2.5.38

12 months ago

2.5.37

12 months ago

2.5.36

12 months ago

2.4.36

12 months ago

2.4.35

12 months ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

1.4.32

1 year ago

1.4.31

1 year ago

1.4.30

1 year ago

1.4.29

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.4.20

1 year ago

1.4.19

1 year ago

1.4.18

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.3.16

1 year ago

1.3.15

1 year ago

1.3.14

1 year ago

1.3.13

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.1.9

1 year ago

1.1.8

1 year ago

1.1.7

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.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago