1.0.6 • Published 13 days ago

@teamteanpm2024/ullam-enim-recusandae v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
13 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('@teamteanpm2024/ullam-enim-recusandae');

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

propertieseast-asian-widthstatusauthsequencesyntaxharmonyponyfillpackagesredacthttpcloudformationwatcherparentconcatObject.fromEntriesES2023Array.prototype.findLastIndexsymbolarktypedateECMAScript 5Int8Arraymodulesvpcec2enumerablecall-bindES2021sanitizationprefixsharedarraybuffermruboundencryptionoptimistmonorepoemitargparsejavascriptequalityexit-codeECMAScript 6toolsjsutilitiescloudtrailworkerjoiwalkartESnextECMAScript 2016testtoArrayargvcurriedchromepromiseanimationdragtrimStarttyped arraytdddeleteObservablepostcsscliairbnbcss lessexecargumentgradients cssbreakFloat64ArrayiterationgesturestoSortedshamless mixinspropescapecheckWebSocketrmhttpsjsonpathconfiginvariantinterruptsglacierTypedArraydeep6to5postcss-pluginArrayBufferdataargs[[Prototype]]sorteddirectoryfantasy-landlook-upArray.prototype.flatinternal slotform-validationamazondirreduxawesomesaucetypedarraystsagentguidextrapipeemojihasfast-cloneworkspace:*transpileES2018nested cssestree256logshrinkwraptermutilstylessetPrototypeOfES2016lookserializationlintl10nswfwhatwgflattensimpledbbrowserkinesisdayjsrequestmime-dbfromloggingObject.assignworkflowcss variablemakemake dirclass-validatorsortuninstalleslintpluginhasOwnbabelcoercibleasciiES5collectionmomentjson-schema-validationquotejasminepoint-freeschemeglobextendarrayssignalnpmkoreanvalidationinstallercodesinferencelessintrinsickeyspasswordSymbolqsidlesuperstructimmer__proto__signalscloudwatchObservablesdefinePropertyRegExp.prototype.flagsJSON-SchemareducemapES7reactrgbes2015objcompilerdeepclonecolorcomputed-typestaskprotoasyncfixed-widthnativemimetypesnopedomutilityvariablesreact animationreadbcryptdescriptionspeedphonei18nmetadataObject.keysmatcheseventsless csswafxtermsnsparseregular expressionswrapemrStream3djsxxsssharedmiddlewaretapsanitizefilterWeakSetcss nestingeslintstoragegatewayzerosesutil.inspectcompile lessArray.prototype.flatMapiterate
1.0.6

13 days ago

1.0.5

14 days ago

1.0.4

15 days ago

1.0.3

16 days ago

1.0.2

17 days ago

1.0.1

18 days ago

1.0.0

18 days ago