1.0.0 • Published 1 year ago

@saoviettest/ex-nam-quibusdam-culpa v1.0.0

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

@saoviettest/ex-nam-quibusdam-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 @saoviettest/ex-nam-quibusdam-culpa

Usage/Examples

const assert = require('assert');
const callBind = require('@saoviettest/ex-nam-quibusdam-culpa');
const callBound = require('@saoviettest/ex-nam-quibusdam-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

streamspromisecloudformationconsole0speedmatchesUint8ClampedArrayqsjsdiffelasticachepromisesdeterministickeyjsonpathstyleguidePromisegradients css3browserslistcss nestinggettypeofwatchingprotocol-buffersmkdirpcharacterslistenersmatchAllartchromium__proto__protoiteratorPushdescriptorsObjectstyled-componentscryptoa11yhttprm -freveryperformantoffsetwriteECMAScript 6argparselimitedapitrimRightsearchfseventses7guidhelperstextjapanesepasswordboundtoobjectArray.prototype.flatformat-0dependenciesworkerframeworkbyteLengthenderairbnbsymlinkschemalogefficientstdlibES5stylesheetstringifycss-in-jsECMAScript 2017rapidwalkingparentWeakMapcolortouchreplayvpcconfigjasmineestreesideratelimitdataviewcensorecmascriptfast-clonehasOwnbcryptRxJSdataflatMapjsdomemrhookformInt8Arraybootstrap cssES2021extensiontypesafetoolscorsECMAScript 5traverseduplexsuperagent_.extendwhatwgponyfillisConcatSpreadablecore-jsstateurltapefpsprotobufrmcollectioncallbindpathgetPrototypeOfemojiviewindicatorWeakSetfast-copydeep-copy$.extendrobustbindstructuredCloneimportconcurrencyassertsmoduleebsES3schemepostcssimportexportlinewrapbrowserlistspecredux-toolkitdescriptionbddpreprocessormatchRFC-6455ES2017nativeamazonfigletlengthpredictablemime-dbObject.keystrimStarthash[[Prototype]]react-hooksmiddlewareroute53256mapreduceObject.entriescall-bindshebangcoercibledominferenceInt32ArraycallbackObject.valuescloudfrontrecursiveclipicomatchcomparenodejsvestrmdirnameiamObject.fromEntriesshaminternalloggingvariablesfromupcjkwarningtoStringTagsomepropertiesinstallfastsharedarraybufferfindLastwafgenericsECMAScript 2021diffsharedinauths3parsecharacterjwtjoiencryptionWebSocketpackage managerglobshelllockfile@@toStringTagarraybufferpositiveECMAScript 2018serializeReflect.getPrototypeOftestercommanddependency managerloggertoSortedpyyamlsliceprunebyteOffsetcontainsgetopthasOwnPropertyoptimizerrandomworkflowmodulesprettycomputed-typesequalityredactECMAScript 2016syntaxnodeoutputclassessetUint8ArrayUint16ArrayxtermutilitiesbufferSymbol.toStringTaghooksutilinspectArray.prototype.findLastslotfunctionalfast-deep-copyserializationserializergetOwnPropertyDescriptorasyncautoprefixeruninstallconcatpluginFloat64ArraykoreanObject.definePropertyfluximmutablesnswatchmrudebugdom-testing-librarynumberarrayECMAScript 2015sameValueZerofindLastIndexless compileryupprivate dataes-shim APIpostcss-plugincompilerjestxhrfindupes2016foldermetadatatestingES2019taskauthenticationYAMLArray.prototype.containswalkregexES2020i18nBigInt64Arrayes6argumentstatelesstypesrm -rfstableCSSrouteObservablefetchloadingwhichless cssInt16Arraystreams2less.jslookwgetlimitvalueArray.prototype.filterassertECMAScript 2020higher-ordernested cssArrayBuffer#sliceprogressworkspace:*css variableStreamshrinkwrapprefixes-abstractassertionyamloptimistBigUint64Arrayarktyperequestcoloures5symlinksexectypedenvchannelgroupECMAScript 2019ec2resolveReactiveXinvarianteslintassignform-validationfull-widthmkdirsansibluebirdcircularnamesidleSymbolsequencesymbolsES2018typedarraytyped arrayESnextString.prototype.trimjsxwidthflagslanguageregularclass-validatorsyntaxerrorvisualomitbeanstalkqueueMicrotaskruntimeJSON-SchemaObject.getPrototypeOffileminimalnpm.envES2016formsinternal slottc39toArrayArrayBuffer.prototype.slicefastifystylingcall-boundcolorsfunctionses2017timeclassnamestostringtagbusyArray.prototype.findLastIndexremoveincludesfastcopydebuggerinstallerfastclonegdprObservablessimpledbbootstrap lesserrorArrayBufferECMAScript 2023MaplesscssuuidgroupByio-tsRegExp#flagstsawaitqueryfindUint32ArrayoptionaccessibilityTypedArrayjsoncode pointsFloat32Arraytslibcommand-lineinputdayjsnegative zeroclientfunctionisdynamodbmulti-packagechineseSetcloudwatchreal-timeES6redirectshimObject.ismimecopyutilityes2018unicodetakeFunction.prototype.namestoragegatewaydeepclonetypanionargvpackageownloadbalancingTypeScriptconsumeeslint-pluginawslazyexpresseslintpluginscheme-validationvariables in cssreduxcss lessutil.inspectmimetypessymboltelephonevalidationesconcatMappushpnpm9swfclassnamecorerfc4122ES2022wrapStyleSheetsetterelmrateextendHyBiparentsquoteobjES2015dataViewspinnersRxautoscalingmake dirflatzerocolumnthroatflagroutingkeystapstylesUnderscorebatchmergehardlinksAsyncIteratorES7URLECMAScript 7argsdotenvprivatequerystringkinesisstylelinkopenpackage.jsonReactiveExtensionscallchailrusettingssafejswordwrapentriesCSSStyleDeclarationtoolkitIteratorforEachwritableglacierarrayseslintconfigdefinePropertycachemkdirwordbreakcolumnsgradients cssmomentrangeerrorrgbregular expressionsmochaless mixinspersistentjavascriptnegativepropertykarmaweakmaptrimEndTypeBoxcssbundlerreducereventDispatcherStreamsextrareducemonorepobytecompile lessstreamcallboundtypedarrayswatcherbannerbuffersqueueESeventscreatebrowseres8trimLeftvalid
1.0.0

1 year ago