1.0.3 • Published 1 year ago

@teamteanpm2024/ipsa-mollitia-fugit v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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('@teamteanpm2024/ipsa-mollitia-fugit');

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

Object.isinterruptsprotobufsettings[[Prototype]]look256parserincludesObject.keyscharacterWeakMapArray.prototype.findLastJSON-SchemadayjslimitedhashbcryptECMAScript 2020datastructureconnectrgbdeep-cloneless mixinsmodulesArray.prototype.containsmixinsdeeprfc4122boundtraversecall-boundupiterationhardlinksfind-upvaluesforms0schemaES2020String.prototype.matchAllStyleSheetuuidmacospatchfastifyprivatewalkingwritebrowseropenerreact animationquoteomitexecexit-codewatchFiletc39react poseReactiveExtensionsshellsetImmediatematchAllio-tscmdasciicore-jsviewes2015json-schema-validatorreduceremitirqgraphqlurlsqueueMicrotaskinstallerpostcss-pluginregexpregexbusyemojiclonecoerciblemkdirsescapespeedbyteLengthsharederror-handlingfsglobiterateeventDispatcherSymboltesterutil.inspectlaunchgradients css3stylehigher-ordertranspileopenpersistentECMAScript 2023dataviewmimeutilsES2018utilityjestinputdebuggerBigUint64Arraymomentscheme-validationkeyUint32ArraywrapsymlinklistenersArrayBuffer.prototype.sliceStreamfast-copymiddlewareoffsetextensiontoolkitarktypepromisepostcssmatchECMAScript 2017fetchposesyntaxcolourES2017tacitregular expressionAsyncIteratorpnpm9rmstylesheetInt32ArraymimetypesauthFloat64Arrayregular expressionsshrinkwraputilitiesnested csshandlerskoreanvariables in cssprogresstypelastpositivedom-testing-librarytapeless compilergesturesrangeerrorgenericsrapidstylingstreamshebangflattenfull-widthasyncpackagesArray.prototype.filterArray.prototype.flatMap6to5validationkarmaquerystringstringserializerECMAScript 2022ECMAScript 3parentscomputed-typesdataView
1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago