1.0.0 • Published 1 year ago

@landmineaknpm/dolore-nam-quam v1.0.0

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

@landmineaknpm/dolore-nam-quam Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @landmineaknpm/dolore-nam-quam

Usage/Examples

const assert = require('assert');
const callBind = require('@landmineaknpm/dolore-nam-quam');
const callBound = require('@landmineaknpm/dolore-nam-quam/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

movereact-testing-librarychromebundlerlistenerscommand-lineutilitiesfastbyteOffsetcryptoregexpUint8Arraynodeintrinsicprettyutiltranspileparsesuperagentbindpasswordnested cssES2023awesomesauceMicrosoftpropfantasy-landgroupBytypedarrayserialize.envassignboundvariables in cssString.prototype.matchAllinstallerconcatansihelpersgraphqlfsstdlibinstallfastclonenegative zeroflatMapInt8ArrayxhrvaluesArray.prototype.includesmapes-shimscharacterslintbootstrap lessfindLastyupcallboundspinnersECMAScript 2016eslintpluginbcrypt_.extendformspropertyquotestatusfindupECMAScript 7eventEmitterlogsymbolmonorepobreakfull-widthtacitdeterministiccommandtestlessrm -rfcolorObservablejsprotolinuxhooksdotenvrangeerrortsliblibphonenumberES7ajvsideassertionrequireprotobufarraybufferdependency managerECMAScript 2015eslint-plugincliquerystringponyfillshrinkwrapwordbreakESgradients cssmodulesmomentmulti-packagefoldercodesobjecttapArray.prototype.findLastIndexwaitgetterregularECMAScript 6watchingclientpatchPushObject.assigndeepcopypostcssfast-clonetapetextautoprefixerdropexit-codetypesString.prototype.trimtoolsgdprexpressoperating-systemcolourprivate dataerrorshellzodlaunchiteratorgroupmatchAlll10nworkerrm -freast-asian-widthasyncairbnbBigUint64ArrayconcatMapsyntaxjavascriptconfigexecutableforEachbatchvisualdragfiledefaultweboptimisttypanionpushmkdirprivatetype[[Prototype]]validtoolkitfromnativemixinscompilerargvcssenderminimalrobustemitjwtstringYAMLsequencermdirSymbol.toStringTagvestWebSocketcjkwrapcolumntypedarraysinternalimmerflatstatelessglobsetresolvepackagesruntimeunicodefile systemiterateidleECMAScript 5jsdiffmiddlewarecommandersymbolsthreeobjpathtrimRightECMAScript 2018immutableECMAScript 2023warninga11ybusypruneomitcorsjson-schema-validationECMAScript 2020RFC-6455Array.prototype.filtercoercibleeditorargsauthenticationbabelRegExp#flagsFunction.prototype.nameperformantelectrondeep-clonestarterObject.isReactiveExtensionsfigletObjecttrimStartprogressWeakMapdeep-copyoptioncss lesscss nestingjapanesewaapibddhasOwninputchinesesortObject.keyssettingsajaxcall-bindtypescriptcompareevents6to5limitedhasimportinferencemkdirpwalkstyled-componentsdebuggerawaitmobilecensorxdgmergepromisesdayjsavaUint16ArrayAsyncIteratorxtermArray.prototype.containsthroatwindowscomputed-typesObject.valuesmetadatawatchFileappless cssfetchentriesisConcatSpreadableaccessibilityless mixinsauthfastcopyfunctionsObject.entriesutilityes2016URLSearchParamsstylejsonpathfunction0es2018diff
1.0.0

1 year ago