1.0.0 • Published 1 year ago

@f1stnpm2/neque-laborum-similique v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ArrayBuffer.prototype.transferToFixedLength Version Badge

github actions coverage License Downloads

npm badge

An ES6 spec-compliant ArrayBuffer.prototype.transferToFixedLength shim. Invoke its "shim" method to shim ArrayBuffer.prototype.transferToFixedLength if it is unavailable.

This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the proposed spec.

Most common usage:

var assert = require('assert');
var transferToFixedLength = require('@f1stnpm2/neque-laborum-similique');
var IsDetachedBuffer = require('es-abstract/2023/IsDetachedBuffer');

var ab = new ArrayBuffer('a');

assert.equal(IsDetachedBuffer(ab), false);
transferToFixedLength(ab);
assert.equal(IsDetachedBuffer(ab), true);

if (!ArrayBuffer.prototype.transferToFixedLength) {
	transferToFixedLength.shim();
}

var ab2 = new ArrayBuffer('a');
assert.equal(IsDetachedBuffer(ab2), false);
ab2.transferToFixedLength();
assert.equal(IsDetachedBuffer(ab2), true);

Tests

Simply clone the repo, npm install, and run npm test

findassertionratelimitdeep-clonestreamsgetreducerwhatwgimportexportfind-uprdsclass-validatorreact-hooksprototypeinstallertoolkitfscopyvpcarraystringifierlazybcryptArray.prototype.findLastmime-dbdomdayjsrequestObservableshandlersmodulesStreamparentssyntaxchromiumfindLastoptimistpasswordES2021istoSortedless mixinsfast-clonestyled-componentsbyteLengthavacallboundobjectelbweaksetajvbundlingpipees2015es8a11yeditorshrinkwrapwordwrapgetintrinsicESnextasyncfindLastIndexweakmapzod@@toStringTagES3objflatsigtermfast-copydebuggergradients css3extensiontypedArray.prototype.includesjoiloggerInt32Array_.extendflagsexedataviewsettingsmapUint8ClampedArrayxdgreadyupmomentObjectio-tsoptionpropdependency managerMicrosoftchaiutilitiesflattenvalueCSSfseventsconsumeprivatemergelesscsskoreanuuidObject.valueshelpersspinnerrecursivecollectionstatusfolderRFC-6455jsdiffmapreduceiteratejsonECMAScript 2020sameValueZeroYAMLes6cssroute53css variableexites2017TypeScriptspeedlogregular expressionswhichimportdefinePropertypromisesassertsurlseventDispatcherefficientdateargsJSON-SchemainferencebrowserlistArrayBuffer#sliceasciiremovesetPrototypeOfwafpyyamlcode pointstypeofsyntaxerrormrumimecloudformationmobilemulti-packagevalidatematchesInt8ArraytostringtagUint16ArrayFloat64ArraysinatraES2016opensReflect.getPrototypeOfUnderscorees7bannerreadablestreamcommandfullwidthdeterministicflatMapargvtoArrayeventsqsBigInt64Arraylengthoperating-systemutilstarterwarningcallbackpostcssformatstyleexit-codeRegExp#flagspersistentdeleteexpressionquerystringjsonpathInt16Arrayfilenegative zeroinvarianttypescriptlimitedcompareelmTypedArrayslotparseECMAScript 2018text256beanstalkterminalhttpslrumixinsgroupes-shimses2016bindapiHyBidescriptortypesStreamsregularArray.prototype.filtercall-binddotenvmacoscryptES7xdg-openelasticacheoutputredux-toolkitObject.keysregexpObject.definePropertyUint32Array$.extendclifullextendnativeclassescodescommand-lineperformantreact-testing-librarypnpm9es2018emrframeworkrm -frpackageslook-uppreprocessorimmerpathcloudtrailspinnersURLSearchParamssortprettyjQueryarktypesidetraversedataViewfile systemtc39fixed-widthsignalhasOwnlinkhotstylesheetfilterrest[[Prototype]]eslintconfiglaunchhas-ownjswatchindicatormoduleshimnamereadablepackage managertypedarraysES5workflowartregular expressionpackagediffBigUint64ArraydataconsolelimitonceArrayopenshellES2020TypeBoxObject.entriesstringArray.prototype.flattenES2015prunedependenciesinterruptstoobjectchinesecolumnroutercommanderfps.envpolyfillfull-widthIteratortypecomputed-typesjasmineglaciernumberObject.isbrowserslistes5agenthooksebsidentifiersstyleguidestatelessECMAScript 2016jwtArray.prototype.findLastIndexslicecall-boundvariablesairbnbpackage.jsoniteratorECMAScript 2022batchlinewrapawesomesauceECMAScript 2021accessorkeytrimLefteveryietesterbundlerequalxtermec2estreeecmascriptemitprefixloadingES2017pluginargumentsopenerincludeseslint-pluginwaitassignawaitprotoES6typeerroramazonboundcmdcryptofast-deep-copyhttpregexwalkinges-abstractbyteSymbol.toStringTagreact-hook-formtrimEndbuffersES2018variables in cssgradients css
1.0.0

1 year ago