2.0.7 • Published 4 days ago

@taktikorg/reprehenderit-necessitatibus-culpa v2.0.7

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

@taktikorg/reprehenderit-necessitatibus-culpa Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @taktikorg/reprehenderit-necessitatibus-culpa

Usage/Examples

const assert = require('assert');
const callBind = require('@taktikorg/reprehenderit-necessitatibus-culpa');
const callBound = require('@taktikorg/reprehenderit-necessitatibus-culpa/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

opencreateruntimemonorepooutputbrowserlistsimple cacheanimationTypedArrayassertioncommanderlocationcmderrorcoveragenumberform-validationformcallbackemojidebugawesomesauceArray.prototype.includesES2017hookformObject.keysquoteguidtypeerrorlaunchformattinggraphql0checkWeakMapObject.getPrototypeOfpackagestreams2MicrosoftmomentbannerECMAScript 2018deep-copytraverseInt32ArrayfindLastrecursiveECMAScript 3ECMAScript 2023shellObjectserializetapnameviewreducershamtslibapiassertrangeerror_.extendpostcssecmascriptArray.prototype.flatelectronparenticonvcryptosyntaxerrortimeexpressionjson cacheefficientrequirelockfilefileajvtypanionglobalsjsxeslintconfigcodesutilitytoSortedbddspeedes-abstracttrimStartdescriptionjssqsjQueryparserendpointautoscalingRFC-6455cloudtrailfunctionclass-validatorfind-upserializationgrouppropertyprocessowntypedES5Array.prototype.findLastIndexjestES2015hasOwnwalkjapaneseWebSocketslengthsesPromisepicomatchhas-ownArray.prototype.containscolumnsconcatMapkeysstarterECMAScript 6tc39sharedObject.valueskinesisgetintrinsicquerystringroutingstyleguidechailoadingargumentsfile cachenopetrimEndlibphonenumbershimwalking256lazyreact-hooksdeleteshebangWebSocketmime-dbio-tseventEmitterprefixwarningESnextdotenvassertsmapopensclientebsgetOwnPropertyDescriptortddfixed-widthregular expressionsintrinsicansifullwidthslotequalitysymlinkstrimLeftECMAScript 2016superagentwordwrappopmotionvisualvaluesdescriptorzodtrimbyteLengthcommandenders3$.extendsharedarraybufferpathtyped arraysafeECMAScript 7toArrayStreamlook-upicudebuggerinternal slotES2020awsreadableconsolespawnindicatorutillimitedIteratorgdprsortedInt16ArraycharacterttyarktypefindLastIndexes2016Function.prototype.nameconfigratelimitweakmapRegExp.prototype.flagsminimalairbnbunicodesimpledbposeresolvepluginurlscharsetequalfunctionalObject.assignrm -frfull-widthfast-deep-copypyyamleventDispatchercall-boundcolorcallboundwhichhasOwnPropertyphoneECMAScript 2022defaultelasticachecollectionjoiconcatinferenceObservablesmakestableObject.entries[[Prototype]]identifiersgesturesenvfindupponyfillspringinvariantspinnersgetPrototypeOfdomes5limitfoldertostringtagSymbolappES8real-timeECMAScript 2019bufferslanguageperformancetermuninstallomitJSON-SchemaglobalprogressTypeScripthaschildmkdirpoptimizerregular expressionbundlingdataviewpushsearchvarses-shim APIfindReactiveXidledefineoptimistvalidationarrayscode pointsmoveSymbol.toStringTagfunctionscompareworkerstructuredClonerdsmake dirimportexportmrupositiverm -rfyupshrinkwrapredirectjavascriptjshintcharacterses7queryprivate databufferfstesterJSONamazoni18nthrottlelistenerslastjsonAsyncIteratorwebsiteduplextestingglobnode.envbyteesawaitartcore-jskoreandeepcloneECMAScript 20173dnegative zerostoragegatewayescapeinmoduleargsCSSiterateremoveObject.definePropertyObservabledom-testing-librarycoloures-shimsextrabusy@@toStringTagapolloenvironmentworkspace:*protobufpnpm9package managerwriteStyleSheetqsES2018dynamodbcolumnsetPrototypeOfdropreact posePushschemaES2019ECMAScript 2020stylestelephonesideemrsymbolsstylecallbindrobustBigInt64Arrayredux-toolkitArray.prototype.flattensorttouchreusecomputed-typesthreeRxbindperformantpreserve-symlinkstextvpcistanbulArrayBuffer.prototype.slicenamesparentscjkcoercible__proto__figletpromisestoolslinttoobjectnpm-0asciiteststreamsmatchAllimmutableprettyisConcatSpreadableTypeBoxrmdirwritableES7promisebundleres8pipeterminalpropertiesjsdiffmobilewaapitypesfilterformatArraymimeenvironmentsmergeobjmapreducexdg-openbyteOffsetiamchromiumvalidatelinewrapcontainsbreakvaluegroupByrapidtsec2modulesnodejsreactwaitprotoinstrumentationglacierl10nenumerableObject.isUnderscoreclistringifyoncestringURLarrayfetchString.prototype.matchAllstylingtoStringTagimportfastdependenciesforEachcompilerflagstringifieraccessorreaddragcall-bindcollection.es6command-lineES2016genericsUint8ClampedArrayhashURLSearchParamsavaasyncexeRegExp#flagsformsexpressECMAScript 2015rmframerarraybufferdateSetproxyimmeroptionArrayBuffer#slicecensorflathelperspackagesCSSStyleDeclarationECMAScript 2021Float64ArraysettypeofbrowserslistESconfigurablebluebirdhttpstakeinternalcssboundlogstatelessmulti-packagereduceconsumewraplrueverydatastructurextermes2015deterministictypescriptagentregexpjsonpathdeepcopyparsingtaskdayjsfunction.lengthexeciterationloggingroute53mkdirobjectflagsInt8ArrayjasmineReactiveExtensionstypeautoprefixersnscloneloggeres2018toolkitspinnerES2022chineseStreamsoffsetnativecopyextensionvestES2023symbolparseHyBiaccessibilityupprotocol-bufferssuperstructes6mimetypeslookfromswfpostcss-plugincloudformationstyled-componentsrgbcolorsxhrcloudwatchhigher-orderfile systemxdgworkflowfast-deep-cloneeventspackage.jsonbrowseriteratorreadablestreamqueueMicrotaskutil.inspectwordbreakwhatwgsameValueZeroYAMLFloat32Arrayinstaller
2.0.7

4 days ago

2.0.6

5 days ago

2.0.5

6 days ago

2.0.4

7 days ago

2.0.3

8 days ago

2.0.2

9 days ago

2.0.1

10 days ago

2.0.0

11 days ago

1.0.0

12 days ago