3.2.7 • Published 17 days ago

@hishprorg/sequi-cumque-deleniti v3.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
17 days 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('@hishprorg/sequi-cumque-deleniti');

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

censorsortedeventDispatcherFloat64Arraytoolkitclientlookcmdes-shim APInodejssymlinkslocationUint8ClampedArrayimportexportdefineflagimportpropertiesopenersettingscommandObject.fromEntrieshashUint16ArraymkdirsnumberpipekeyrapidgraphqllaunchmakedayjsinternalhelpersArray.prototype.includesequalityshamlrutc39streamstarteroffsetregular expressionextraESreact-hooksoncenopedeepcopyes-shimslogidrfc4122dirRegExp#flagslinkcacheglobWeakMapArray.prototype.containsfunctionalsymboltypesafeshebangconsolecheckES6AsyncIteratordescriptorspackagestypeofES7propObjectdatemimexdgFunction.prototype.nameexecvalidtoArrayUint32ArrayJSON-Schemaexpressionwordbreakfetchsomeprivate dataairbnbslothardlinkszxprefixplugincreateinspectmulti-packagemapreduceprotocol-buffersextendqueryinstallertoSortedsnspostcssupgetoptSymbol.toStringTagthrottleECMAScript 2019styled-componentsresolvereact-testing-libraryyamlsameValueZeroapies2018binaryzodcsscolourperformantchildMicrosoftcolumndescriptionkoreanfile systemtypelengththreeReactiveXfindLastIndex0syntaxString.prototype.trimrangeerrorwarningcode pointscollectionautoprefixernodepromisescommanderwidthfindLasthelperchanneljsonArrayBuffer#slicefulles5beanstalkregular expressionsreadeslinta11ycommand-lineelasticachespinnerpackage.jsonjsreusecolorRxJSparsingwrapdependency managerES2016defaultawaitjoiworkspace:*ponyfillmobileescapetypescriptfast-copyeslintpluginuuidpersistentlimitedhttpjavascriptsetImmediatelistenersBigUint64Arrayspawnpackage managersortminimaliamexpressemr.envbinomitECMAScript 6browsermake dirES2020kinesisbundlinges2016boundexecfilehassource mapawesomesauce$.extendamazonReflect.getPrototypeOfObservablelanguagepromisestringi18nxtermpostcss-pluginfastcloneredirectparentfunction.lengthreducedataViewtesterwhatwgelectrongraphql-clientmapsuperagents3reducerterminaltypedarrayl10nRFC-6455valuesquoteeventEmittertakeES2015artcall-boundschemahas-ownprettynpmlook-updeterministicexecuteutil.inspectcloudsearchhtmlpnpm9assertionsideposeargsrgb
3.2.7

17 days ago

3.1.7

18 days ago

3.0.7

19 days ago

3.0.6

20 days ago

3.0.5

21 days ago

3.0.4

22 days ago

2.0.4

23 days ago

2.0.3

24 days ago

1.0.3

25 days ago

1.0.2

26 days ago

1.0.1

27 days ago

1.0.0

27 days ago