1.1.2 • Published 22 days ago

@teamteanpm2024/quasi-error-voluptatum v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
22 days ago

@teamteanpm2024/quasi-error-voluptatum Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @teamteanpm2024/quasi-error-voluptatum

Usage/Examples

const assert = require('assert');
const callBind = require('@teamteanpm2024/quasi-error-voluptatum');
const callBound = require('@teamteanpm2024/quasi-error-voluptatum/callBound');

function f(a, b) {
	assert.equal(this, 1);
	assert.equal(a, 2);
	assert.equal(b, 3);
	assert.equal(arguments.length, 2);
}

const fBound = callBind(f);

const slice = callBound('Array.prototype.slice');

delete Function.prototype.call;
delete Function.prototype.bind;

fBound(1, 2, 3);

assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);

Tests

Clone the repo, npm install, and run npm test

limitedeslintsyntaxpoint-freeviewform-validationmrumiddlewarematchescopyES2021extendserializationtimelook-uphelpersgesturesmovenumbercryptodefinePropertyes2015watchFilebundlingpnpm9arktypecodeserrorStreamsassertioncharactergroupByidleieArrayBuffer#sliceawaitwriteinspectinternal slotreactinterruptstypedarraysapolloRxJSmonorepoassertspropertiesinstallerenvironmentnopeless mixinssymbolsclonedom-testing-libraryletvariables in csssharedcommandermomentloadingcollectionquerystringschemastyleArray.prototype.includessignaljsxparentswebsitedefineemitasciidatacorsstylesheetYAMLStyleSheetgdprjQuery@@toStringTagredactjsonpathextralrucore-jspersistentttyinstallObject.keysanimationchromevalidationio-tsslice-0shebangdeletelengthexitECMAScript 3dotenvutiltypedbootstrap cssECMAScript 2020requireES5internalobjreact poseES7entries256sanitizesameValueZerofindLastIndexfilterHyBiES3efficientconfigurabletapeECMAScript 2017performanttestmergeregular expressionsrmInt16Arrayfile systemthrottleappsymbolES2017Uint32ArrayisConcatSpreadableframerObservablesdeep-copyautoprefixerUint8ClampedArraycircularMapdeepfseventsfsES2016browserlistdefaultspinnereslint-plugincallboundspringsetmodulesomedescriptorsincludesmulti-packageWeakMapbusyES2022concatvaluesuperagentharmonyECMAScript 2019es2018SymbolprettyparserES2023fixed-widthstringchildprefixexecutablevestregular expressionbabel-corecss lessObject.getPrototypeOfspawncreatexdggetstyled-componentsoperating-systemtakemakepicomatchformattingdebuggerrequesthasOwnargumentcommandjoinativewhatwgassertdescriptorECMAScript 2015toolswaitlimitjson-schemaestreepropboundguidpopmotionjsdifflazyexit-codeurlsenvbyteLengthcallbackdeep-cloneconsolecall-bindprivatehooksutilsBigUint64ArraybytewgetWebSocketsconnectjsonschemanegativefoldersignals
1.1.1

23 days ago

1.1.2

22 days ago

1.0.1

24 days ago

1.0.0

25 days ago