1.0.0 • Published 14 days ago

@ryniaubenpm/possimus-quis-vel v1.0.0

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

@ryniaubenpm/possimus-quis-vel Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @ryniaubenpm/possimus-quis-vel

Usage/Examples

const assert = require('assert');
const callBind = require('@ryniaubenpm/possimus-quis-vel');
const callBound = require('@ryniaubenpm/possimus-quis-vel/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

deep-cloneconcurrencyconfigurableasyncvestpicomatchprotocol-bufferscalltyped arraypruneESnextirqcall-bindwindowsjwtform-validationmatchAllmake dirrapidstartertranspileecmascriptObject.assigncode pointstsECMAScript 3chromepreserve-symlinksa11yprotobufarrayjson-schema-validationweaksetflattenECMAScript 2021openshaswaapibuffersyupomitpostcssES7bootstrap lessmrumetadataYAMLfastclonerfc4122getoptpersistent0descriptorsrm -rfi18nES2015fsrecursiveReactiveXqueueMicrotasktrimEndreact-hook-formjsonpathmimeES5String.prototype.trimlockfileprettymimetypeses5expresstypeofasciiES6ECMAScript 7JSONoptimistassignwebsitesuperagentargses7definePropertyequalityArray.prototype.flattenexitinterruptsobjeslintcolorsescapepackage manageriteratorsameValueZerofetchconnectfilterflatMapairbnblazyslotcommanderless csscompilerratelimitpropertiesRegExp#flagsupSymbol.toStringTagbrowserslistdataPromiseappparentfast-clonefile systemWebSocketstesterECMAScript 2019dataViewreduxInt8Arraystylestylesheetdotenvobjectcreateframeworkes-shimsArray.prototype.flatMapWeakMaprmreactgdprES3Object.fromEntriesvalidationfileletpreprocessorconfighookformefficientclass-validatorstringifyvalidlruajaxcloneassertpackage.jsonFloat64Arraystartavachineseprivate datapathvalidatorstylesfigleterrorxdg-openclassnamepackageredactreadablebddIteratorshimcjkregular expressionextradatastructuregraphqleslintconfigequalpyyamlworkspace:*installes2018typesponyfillmixinspromisescoerciblesanitizationinstallersharedURLquerycorefromauthenticationdirsymlinksInt16ArraycmdargparseBigUint64ArrayjsxserializejasminewatchertrimRightArrayBuffer.prototype.slicefseventsexecollection.es6es2016es8apollo@@toStringTagemojigroupBycurriedsortfixed-widthimmerES2023babel-coreprogressTypeScriptlintRxrangeerrormkdirsortedhttponceajvperformancevariables in cssinspectgradients cssarktypestatusiteratebundlingcharacterio-tsArray.prototype.containswordbreakArray.prototype.filterinferencereduceES8zeroUint16Arrayhandlersguidlastcachereact-testing-libraryURLSearchParamsbootstrap cssmiddlewarees6reducerestreearraybufferperformantpasswordregularwaitcss nestingnegative zerocolourtc39numbertostringtageast-asian-widthcollectionweakmapchildstreamlengthMicrosoftdom-testing-library$.extendECMAScript 2022functiondeterministiccryptES2020iereact-hookscolumnsgenericsduplexeslintpluginthreemodulewritableastrmdirincludessettingslogbluebirdaccessibilityconcatMaptypeerrorfast-deep-copyECMAScript 5xdgterminalless mixinsstyled-componentsES2018dayjsArraythrottlewritemonorepobannermergehookswalkUnderscoreString.prototype.matchAllReflect.getPrototypeOfwidthnested cssfastifyttyECMAScript 2023Object.keysES2022autoprefixerStreamsSetcompile lessemitfastcopytypedcheckformsreusesuperstructwalkingspinnerlaunchfindquerystringextensionjsdiffprocesseventEmittersequencebreaksyntaxquoteBigInt64ArrayArrayBuffercommandnegativemap.envmochaArray.prototype.flatReactiveExtensionspnpm9Symbolvariablesfpcontainsclicss variabledependency managerjoigetOwnPropertyDescriptorArray.prototype.findLastserializerreact animationhelpersbyteOffsetregex6to5call-boundpopmotionshellargumentskarmasetxtermspecflatkeyoffsetnodehardlinksdebuggerInt32Arrayreal-timeECMAScript 2018loggerstatelessdeepcloneFunction.prototype.namejsonsomeparentsfindLasttypesafestreamsArray.prototype.includesstructuredClonehttpswatcheventsloadingtoArraysetImmediatequeuesetPrototypeOfECMAScript 2016PushbusygetPrototypeOfcensorcurl256formatassertionpipeutil.inspectwrapjsonschematddruntimeminimaltypedarraycopyimmutableObject.getPrototypeOftimeRFC-6455domuser-streamsUint8ClampedArrayAsyncIteratorlibphonenumberdependenciesisConcatSpreadablesharedarraybuffereveryarrayslinuxmulti-packagereact poseposedirectorydefinejestObjectRxJSUint8Arraycodesdeletesyntaxerrordebug[[Prototype]]consumeanimationerror-handlingfoldertouch_.extendtrimStartinternal slotinputES2016lesscsstestingcss lesslookmovejsvaluesObservablerequestfindLastIndexparsergradients css3readspeedsymbolsviewmomentpostcss-pluginRegExp.prototype.flagstaskdeepmime-dbECMAScript 6expressioncore-jsbundlersymbolargumentWebSocketapicomputed-typesserializationdragfastforEachcss-in-jstapfull-widthgetter3dshebangtranspilerwebfullesES2017chaispinnersESbytenativeenvrequirefullwidthTypeBoxhigher-ordertypaniones2015gesturescommand-linees2017validateharmonyuninstallchannelsliceenumerableECMAScript 2020toSortedexit-codemobileauthtraverseqspositivebyteLengthstdlibnamesgrouppatchplugintextsignalpromisetslibvartelephonepoint-freewhatwgstreams2CSSStyleDeclarationbatchArrayBuffer#slicecallbindtrimLeftconcatrm -frtoolsstablesearchprivatetapeinvariantwatchingchromiumcssartoperating-systemtypedarraysschemaratemacosschemefind-updefaulttakeECMAScript 2017prefixoptionnpmfunctionsjapanesergbkoreaninternalpolyfillcomparehasheventDispatcheropenerencryptionObject.valuesstringawait
1.0.0

14 days ago