1.0.0 • Published 9 months ago
@diotobtea/quae-accusamus v1.0.0
@diotobtea/quae-accusamus
Robustly .call.bind()
a function.
Getting started
npm install --save @diotobtea/quae-accusamus
Usage/Examples
const assert = require('assert');
const callBind = require('@diotobtea/quae-accusamus');
const callBound = require('@diotobtea/quae-accusamus/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
internal slotasynces-shimses-abstractpopmotionserialize[[Prototype]]columnfastclonefetchexecgetavacommandereveryjoispawnwalkprototrimEndtraversesharedES5emitcode pointsebsstyleguidecallboundiamhandlernodeargsJSON-SchemaURLSearchParamsclassnametypaniondeep-copyquoteweakmap3dbrowserslistsymbolsetPrototypeOffpsnegative zerolengthpicomatchObject.valuesexecfileframerwaapistreamletenderprogressvaluessimple cachemrubusybrowserlistenvironmentbound.envforEachestreenumberpipevesttoSortedgroupa11yreadablewebquerystringes-shim APIHyBichromiumxhrgetPrototypeOfperformanceequalitytoReversedidlediffcloudtrailpackage managertoolkitsyntaxregular expressionECMAScript 2022Int16ArraybrowserargvspringupajvlocationajaxrmdirvalidationparserclassesArray.prototype.flattenglacierwafReactiveExtensionsSymbolcodesArrayentrieshigher-ordersearchprotobuffunctioniteratorimportexportBigInt64ArraystreamspromiseglobalsspinnernpmignoreutilitiesbundlingES2023binaryes2016trimLeftfixed-widthreadjsfindregexindicatorcloudfrontzodqueueMicrotaskutilsasciicollectionfrompoint-freeefficientsharedarraybuffergetOwnPropertyDescriptorRFC-6455executeMaptoArrayECMAScript 2023Uint32Arraysomeclass-validatorkinesistrimFloat32ArrayES2018jsxansiservicesuperstructTypeBoxECMAScript 2016xtermlanguagedescriptionSymbol.toStringTagcoveragejsdiffdeepcopyhas-owndropawesomesaucehasOwnqskoreanstableroutinglockfilegetterarraysreact poseeslintpluginUint8ClampedArraytc39keysinstrumentationlistenersinstallerform-validationworkervalidlogginggraphqlmatchAllmake dirpackagesmanagermockingfigletArrayBufferrequesttypesafereuseprunemulti-packagedataviewelasticacheObjectgitignoredayjspathpackage.jsonstringifierRxJSstylesuser-streamstoolsassertsfindLastrouteWeakSettypedtransportECMAScript 2018es2018loggerparentspluginArray.prototype.flatMaprulesgetintrinsicES2021typesjavascripttesterstringbundlerthreelinkponyfillES2017endpointglobCSSStyleDeclarationjsdomfunction.lengthregular expressionsECMAScript 2019toobjectelectronlocalastrestcjkwidthECMAScript 2021variablesfindLastIndexstringifyECMAScript 2015lastexpressionregexpreducepositivebeanstalkWebSocketoptimizerlibphonenumberassignmergewhichecmascriptenvironmentseventDispatchercommand-linetrimRightwalkingescapepostcss-pluginslicearraybufferstructuredClonebyteLengthcloudwatchtyped arraysafeformattimesetterObject.fromEntriesfront-endschemeconsoleES8core-jstaptypeerrorschemafull-widthmetadataprototypetypescriptreactartfsdependency managerflagsvaluepatchjson cacheclassnamescssUint16ArraycharactersaccessorcurriedUnderscorequery-0binariesdefinePropertystyled-componentsUint8ArrayasterisksredactES2019assertionfile systemeventsdotenvramdaec2configurableserializerairbnbcall-bindincludesatomyamlbabel-corebuffersbddrssstylechromeRegExp#flagscheckbytenegativecolorconsumephoneStyleSheetmonorepoflattenproxyECMAScript 3ES2022getoptprefixlook-upobjectwriteESmodulesdeepcloneurlvisualnopearktypeyuphelperslintgdprconcatspinnersrdsrmprettycomputed-typescompilertestingfilter_.extendpnpm9ECMAScript 7charactereast-asian-widthlookreadablestreamflatMapObject.entrieslogenvdateArray.prototype.containssubprocesssuperagentTypedArraycall-boundfast-deep-cloneRegExp.prototype.flagsString.prototype.matchAllserverrgbshimArray.prototype.findLastIndexequalconcatMap@@toStringTagtextsetImmediateawsYAMLpropertiesArray.prototype.findLastimportes5es6setnativeownObject.keystslibFunction.prototype.namefast-clonefileinspectObservablePromisefastcopyobjsyntaxerrorcloudsearchnamesswfomitinvariantfpcryptoagentemrclientshelldom-testing-libraryoptionprotocol-bufferskeyhookformObservablescss-in-jsfast-copyregularES7propmovesameValueZerostarterjshintReactiveXtrimStarttouchuuidbindresolvetakecircularbufferdeepextraIteratorbyteOffset6to5ignorewhatwgObject.issescolourfasttestPushfind-upbabelcolumnsspeedvarsfullanimationpuretypedarrayrecursiveinternalcomparematchesdependenciescensorxmlcopytypedarraysflatgroupByposedeep-cloneframeworkcallbackObject.definePropertyhardlinksdynamodbJSONinrestfulmakecliglobalprocessMicrosoftInt32ArraytranspileString.prototype.trimgenericsunicodeES6typegesturesArrayBuffer.prototype.slicefeedshebangprivateexpressuninstalltoStringTagtypeofisprivate dataforkInt8ArrayparseconstchaiidnpmBigUint64Arrayeslintfile cacherequirerfc4122cloneECMAScript 5dataViewsqskey parmapreduceidentifiersvarsimpledbvpcpushpyyamlrm -rfmockpackageTypeScriptes2015assertinferencedirectorycolorsECMAScript 6rangeerrorArray.prototype.filterloadbalancinginputmatchWebSocketscurlrandomparenttacitacornhasistanbul0findupvalidateES3nodejswarningperformant.gitignorehttpsCSSremoveSetRxECMAScript 2020deletezxi18nharmonypolyfillfastifyfast-deep-copyloadingwaittddes7io-tsdatahashcorecallbindamazonES2016cloudformationtsserializationoptimistmoduleweaksettelephonehasOwnPropertyObject.assigndebugjapanesereworkimmerbintermhtmlpreprocessorerrorReflect.getPrototypeOfmappostcssrapidcommandterminals3argumentreact-hooksdeterministictranspilerrm -frcoerciblelruchildURLl10nautoprefixerdomelbredux-toolkitcreatedescriptorsautoscalingview$.extenditerateespreeutilityworkspace:*routerdefineroute53Float64ArrayonceinstallconfigpropertyqueuereversesymbolsfnmatchWeakMaphttpshamredirectdirwritableslotfantasy-land__proto__callimmutablemobilemkdirtostringtagkey valueeffect-tsesjasminesortedsymlinksstoragegatewayES2020chinese256fullwidthoffsetcontainsmanipulationreducersideECMAScript 2017runtimemochabannerutil.inspectintrinsicreal-timeArray.prototype.flatESnextjestappmkdirpreduxfunctionssortdebuggereslintconfigObject.getPrototypeOfeslint-plugines2017tapespecAsyncIteratorisConcatSpreadableflagdescriptorarrayreact-hook-formStreamstylingkarmadragsinatranameutilwgetcollection.es6pinojsonformattingsnsapolloreversedformrobustieback-endES2015enumerableeventEmitterjQueryscheme-validationsource mapArrayBuffer#slicehookszerominimalmomentextend
@diotobtea/a-necessitatibus-assumenda-nam@diotobtea/alias-praesentium-alias-nobis@diotobtea/aut-beatae-molestiae-ipsum@diotobtea/beatae-eligendi-ratione-suscipit@diotobtea/consequuntur-porro-incidunt-nobis@diotobtea/corrupti-quos-neque-dolores@diotobtea/dicta-quas-soluta-placeat@diotobtea/earum-eaque-nemo-ad@diotobtea/eius-explicabo-delectus-voluptatem@diotobtea/enim-aspernatur-inventore-autem@diotobtea/eveniet-eveniet-dolorum-quaerat@diotobtea/explicabo-iste-labore-assumenda@diotobtea/modi-quibusdam-vitae-mollitia@diotobtea/occaecati-qui-commodi-ea@diotobtea/pariatur-vero-nostrum-dignissimos@diotobtea/quaerat-optio-qui-totam@diotobtea/rem-velit-error-in@diotobtea/repellendus-repellat-error-blanditiis@diotobtea/repellendus-veniam-distinctio-nostrum@diotobtea/reprehenderit-alias-cum-consectetur@diotobtea/repudiandae-atque-non-aspernatur@diotobtea/rerum-possimus-quo-ipsum@diotobtea/tempora-vitae-dolorem-molestias@diotobtea/voluptate-enim-excepturi-distinctio@diotobtea/voluptatem-officia-veniam@diotobtea/voluptatibus-ipsum-facere-rerum@diotobtea/voluptatibus-numquam-ratione-consequatur
1.0.0
9 months ago