1.0.0 • Published 1 year ago

@berufungirnpm/maiores-necessitatibus-doloremque v1.0.0

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

@berufungirnpm/maiores-necessitatibus-doloremque Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @berufungirnpm/maiores-necessitatibus-doloremque

Usage/Examples

const assert = require('assert');
const callBind = require('@berufungirnpm/maiores-necessitatibus-doloremque');
const callBound = require('@berufungirnpm/maiores-necessitatibus-doloremque/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

String.prototype.matchAlllanguagel10nIteratorenumerablecore-jsa11ydataViewkeydompositivegroup-0watchingequalitycloudwatchisConcatSpreadableargvqueuefastcloneeventDispatcherHyBimetadatafindES6nodejssafeArray.prototype.includesexeclengthelasticacheisnodevalidatedescriptionrecursivemovetslibpackagesbusyhelperscallboundconcurrencyrmdirbrowserlistcss lessFloat64ArraywalkinghooksES2019directorycallObjectESjsonYAMLSetURLSearchParamswebcorecss variableObject.fromEntriesECMAScript 2023stringwhichamazonES2020accessibilitydataserializemixinspostcss-pluginfastifyloggingnamesreact-testing-librarydotenv@@toStringTagenvironmenttyperedux-toolkitbeanstalkclassessearchES2016tapeasciitrimEndjestansiless.jsBigInt64ArrayshrinkwraprgbponyfilloptimistterminalshamcolumnsmodulehasECMAScript 2020fastlimitemojijsxfast-deep-clonefilterECMAScript 2016make dires7ES2018Object.isvalidStreamcliasserttrimRightRegExp.prototype.flagsiamstatekinesispluginnegativereal-timerandomreplayfast-copyoptimizerpropertiesboundajvyupreadableperformancebcryptapollofolderintrinsiciteratenested cssdynamodbsesES7formattingdropnopeRxroutingjsdiffdayjscryptolibphonenumberserializationrangeerrori18nprettycompilermapassignECMAScript 2018WebSocketsjoiObject.keysargumententriestapECMAScript 3ECMAScript 7makeguides-shimscolorsbootstrap csscallbackfigletproxyworkerdircodesprop0PushlinkweakmapsomecloneES2015regexless csswarningdependency managerviewdependenciesbatchqshas-owneveryjasmineidmime-dblazyoncearraysautoprefixerreduxmergeparentroute53commanderconfigurableformiterationimmutablequerySymbolsymbolslicewalkkarmaclassnamesWeakMaptextasyncsetImmediateArray.prototype.flattendeepclonehttplrucolumnconnecteventEmitterwordbreaksimpledbgdprjapanesees2016emr$.extendcode pointspolyfillcircularnativeairbnbArray.prototype.filteriestyled-componentsawesomesaucerm -rfesrfc4122touchsymlinkerrorArray.prototype.findLastIndexagentvariables in cssES2021TypedArraycompile lesscollectioncryptcall-bindinspectlogtyped arraylimitedmatchesexpressfindLastIndexbrowserslistec2typedarraysettingsnegative zerosqscssratecall-boundfseventsawsemitReflect.getPrototypeOffullstatelesscloudtraillesspromiseswaftypeswhatwgframeworkkoreancallbindhashgroupBybundlingschematypeofbootstrap lessuuidUint8ClampedArrayArrayBuffer#sliceJSONinternal slotsyntaxreactfetchreduceclientjsonpathtoSortedimmershellArray.prototype.flatregular expressionsclassnamesuperagentdataviewdatezeroES3minimalECMAScript 2017getoptfunctionalReactiveXforEachpatchregularquerystringless compilerlesscssmulti-packageinputes5gettimehasOwnPropertyslotString.prototype.trimfind-upbindtelephoneurlloadbalancingmonorepoglaciercontainsresolveESnexteslintstylingauththroatJSON-SchemafromUnderscoreRxJSFloat32Arraynpmbrowserconfigupvariablesfinduppreprocessorchromepreserve-symlinksqueueMicrotaskzoddefineTypeBoxUint8ArrayschemeelmapiloggerarktypeECMAScript 5installcharactersameValueZeroinquoteoptioneslintpluginelbphonestyleequaltoArrayes2017mobileargsregular expressionvpcpersistentcurlconcatvestlookgetOwnPropertyDescriptorextendopenincludesobjstyleguidepostcssform-validation256awaitelectronespreees-shim APItoolkitrobustpathextensionObservableswrapweaksetpnpm9setPrototypeOfes6fast-clonecoercibletraversefindLastbddgenericscomparelook-upmkdirsdeepcopyspinnerfixed-widthjQueryrds__proto__sortcloudsearchwritablereadsharedsetartInt8ArrayObservableutilbyteLengthdom-testing-libraryObject.valueseast-asian-widthtddkeysmochaObject.assigncensorgettertestworkspace:*arraybuffercacheArrayBufferoutputcollection.es6offsetstylesheetwatchFilereact-hook-formio-tsshimstringifyprunemiddlewareredirectbufferutilitiestermchaiescaperuntimecloudformationutil.inspectArrayhttpsgraphqlpyyamlprototypejwtreducerInt16ArrayhasOwnMicrosoftwritereuseflats3jses8package.jsonimportexportavaBigUint64ArrayperformantES2023prefixstreamsES8hotyamldifflocationtrimspecdeep-copyswfrm -frInt32ArraytoolscloudfrontlistenersCSSStyleDeclarationURLsharedarraybufferdeep-cloneloadinglockfilefunctionsbyteprogresschineserequiretoobjectparsermimetypesunicodeutilityAsyncIteratorES5passwordArray.prototype.findLastcomputed-typesremoveformsrapididleflagsexpressionownbyteOffsetchannelasttypesafeECMAScript 2022xtermimporthookformmkdirpreact-hookstrimLeftfsWeakSetsortedecmascriptenderclass-validatorstructuredCloneRegExp#flagstoStringTagvalueECMAScript 6liveStreamsconsumeArrayBuffer.prototype.sliceES2017ES2022matchAllautoscalingObject.getPrototypeOfchromiumwordwraptestersnstestingCSStakees2018Array.prototype.containsvalidationvaluescss-in-jsTypeScriptpropertypushdeletees2015xhrlintreadablestreamscheme-validationextrasequencesuperstructarraystreamstdlibspeedconcatMapauthenticationfileebsWebSockettaskfullwidthflagECMAScript 2019streams2descriptornameArray.prototype.flatMapassertstsmruPromiseassertioneventsredactgetintrinsicmodulesRFC-6455numbermimeflatMapgetPrototypeOfdeepstoragegatewayprotobufless mixinslastencryptionfastcopyECMAScript 2021typeerrordebugtypanion.envrequesttostringtaginternalcjkroutesettercss nestingpackage managershebangeslint-pluginprotocreatefpsjavascriptdeterministicsymbolswgetcolourcommandsidefunctionvisualObject.entriesObject.definePropertytypedarraysReactiveExtensionswaitpipeFunction.prototype.nameECMAScript 2015accessorjsdominferencefluxUint16Arrayobjectiteratorendpoint_.extendduplexstringifierwatchefficientbreakprotocol-buffersenvworkflowpromiseglobpicomatchinstallertrimStartgradients css3stylesdefinePropertypredictableMapthrottleindicatorargparsegradients cssdescriptorscommand-line
1.0.0

1 year ago