1.0.0 • Published 7 months ago

@bobyzgirlllnpm/a-similique-inventore v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 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('@bobyzgirlllnpm/a-similique-inventore');

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

propertiescolumnObject.entriesfind-upcharactersbeanstalkruntimeobjeventEmitterlanguageJSONbluebirdlazyeventDispatcherMicrosoftmapES2016lastformsregexhashES3jQuerycss variableFloat64Arrayfastifycompile lesstaskless.jstimeIteratornodechromiumES2018frameworklimitserializeArray.prototype.containsmrugenericszeroprotocol-buffersa11ygradients css3workflowECMAScript 2016i18nless mixinspatchauthenticationutilitysearchStyleSheetuppropertyCSSStyleDeclarationawaitshebangperformanttoobjectkeyvalidPromisenopecheckclassnameflatMapexpressionfullwidthshrinkwrapjapanesefull-widthECMAScript 2023jsdiffreal-timewgetUint8ArrayECMAScript 2018toStringTagstarterfunctionalfoldertslibdirectorystyled-componentsconnectbyteOffsetisasyncrfc4122multi-packagetrimLeftwhatwgstateqsenumerableespreemodulesrgbdropArray.prototype.flattenimporttakezodjoiCSSpromisesformatgroupByES2022uuidfile systemschemeliveObject.valuesInt32Arrayhigher-orderqueueObjectcorehttpsetPrototypeOfSymbol.toStringTaggetOwnPropertyDescriptorstreams3nested csschineseloadbalancingratelimitlocationsuperagentclassesmakecallbackstylingFloat32Arraydeep-cloneWebSocketECMAScript 2015code pointsUint16ArrayUnderscoreinstallerreadablestreamArray.prototype.flatcss nestingES2015deepcopyObject.assignomitoffsetflattenfulles6arrays-0cryptoemojiwriteconcatcodesunicodereact-hook-formquerystringajaxelmcss lesslimitedimmutablees50valueTypeScriptoptimizerserializationvariables in cssfastserializerwatchingsymlinkopengettertostringtagjwtcolorsmime-dbargparsewatchkinesis.envPushdescriptorsproxycreateURLfastcopydatadomgetPrototypeOfObservablecachestructuredCloneisConcatSpreadablearraycloudfrontvalidationexecWebSocketscomputed-typesregular expressionbcryptgdpruninstalltspicomatchperformancemomentsortedReflect.getPrototypeOfarraybufferregexpemitregular expressionsgetasciiECMAScript 6prettywordwrapconfigsharedclieslintplugingradients cssstringdescriptorglobcharacteres-shimsloggerdotenvcolorincludesbuffersbreaktapduplexArray.prototype.filtersetterbundlerfiletextutilcompilerlinewrapeses2017ES6elbquerypreprocessorfindLastIndexstringifierdeepclonefromcircularjspackagesestreeio-tsformattingnegative zerodefinePropertytypeofebscommanderrequirehelpersObject.islibphonenumberremoveECMAScript 7concurrencyapitermflagregularReactiveXelectronautoscalingtc39sliceclonepyyamlpipesymbolstypesafefast-deep-copysetdescriptionsyntaxerrorInt8ArraystdlibmapreduceiteratehasOwnrangeerrornative256dayjsStream
1.0.0

7 months ago