2.0.1 • Published 1 year ago

@juigorg/voluptatum-corporis v2.0.1

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

@juigorg/voluptatum-corporis Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @juigorg/voluptatum-corporis

Usage/Examples

const assert = require('assert');
const callBind = require('@juigorg/voluptatum-corporis');
const callBound = require('@juigorg/voluptatum-corporis/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

negativeUnderscoretesterwebAsyncIteratorfast-deep-clonevalidpropertiescloudfrontES2017elasticacheminimales2018styled-componentscallboundes2017StyleSheetcodesstringifybinariesawsURLes-shim APIfantasy-landsuperagentcallbindqueryshimgroupchaiappdescriptor_.extendchromefile systemslotlockfilemulti-packagepopmotionrouterreactawesomesaucequeuedeepcopyposepackageES2015mrudeterministicselfcsswalkingobjredirectinvariantpipeinputhookformclonemake dirECMAScript 6ECMAScript 2020environmentscomputed-typesprivatefunctionssetflagsidenpmignorerssuser-streamsproxybyteOffsetArray.prototype.flatMapqueueMicrotaskletprocessxhrsetImmediatebannerieimportexportshamreversedgraphqlwaittoolsacornUint16ArraystoragegatewaycollectiontouchtrimStartjshintprefixECMAScript 2022environmentebsajaxtoReversedBigInt64Array@@toStringTagreusemergerequiretranspilefspackage managerprettygenericscloudtrailcolorObject.valuesemojijasminedotenvvaluekeyscall-bindInt8Arrayflattenreact-testing-libraryparentcensorfnmatchtranspilerdirponyfillframeworkinstalltddrandomArrayBuffer.prototype.slicestartertsliblrucallbacknodejsrgbpicomatchworkerpropReactiveXdataViewglobRxforklook-upcoercibleES8errorassertionspeedregular-expressionaccessibilityxmljsonschemaTypeBoxconfigurabletypedtransformworkflow[[Prototype]]propertyRFC-6455classeswafexpressionoffsetglobal objectrestobjects3optimistJSON-SchemawaapibindsymlinksStreamhooksexecframerInt16ArrayuninstallhasOwnPropertypoint-freeFloat64ArraynativestructuredClonetimeReactiveExtensionsincludesstylingReflect.getPrototypeOfspinnerargsdatafindupidrestfulbddfull-widthparserreducertypescriptspecowncommandertapecryptoES2016jsonmkdirpquotechannel$.extendclientjsshelljapaneseyupconstdependencies__proto__typeofglobalThisdependency managerparseStreamsrmcolumnsresolveeverydebugstreamsdiffESnextbrowserlistcolorsWeakSetconcatdeep-copymatchprunehasOwnpathdescriptorsnumberUint8ClampedArrayclassnamepinopatchtoolkitsyntaxYAMLmatchAllObject.isArray.prototype.flattentacitmodulesansiECMAScript 2021simpledbeskoreanarrayhelperArray.prototype.flatredactjson-schema-validator-0gitignorereducejavascriptArray.prototype.containssuperstructpureform-validationmomentremovedirectoryartenvstyles0pluginES6springsettingszodfindLastIndexemrgetOwnPropertyDescriptorcurlidlepackagessortedfunctionECMAScript 2016figletcompilertostringtagcommand-lineomitnameramdaendercall-boundnodeFloat32ArrayMicrosoftmkdirfind-upbinaryidentifierssearchECMAScript 2018typedarraysnegative zeroRegExp.prototype.flagsentrieses-shimsarraysECMAScript 2019es2015typeunicodereworkString.prototype.matchAllfeedspinnersfilterbufferswhichscheme-validationvarswidthstringifiervariablesES7RxJSsqsreduxagenthtmlflagsgetio-tsquerystringmapreduceECMAScript 2015pnpm9sliceconsoletransportECMAScript 2017compareCSSgetPrototypeOfvalidatores5iamSymbol.toStringTaggetoptkeyregular expressionautoprefixerchromiumloggercallautoscalingcoretsswfvpcsymbolses-abstractrapideffect-tstexti18nargvfixed-widthWeakMapES2021ttydynamodbpromisegetintrinsicArrayBufferreact-hook-formmetadataECMAScript 2023boundterminalespreereal-timerm -rfmovemapinspectfromfetchreact poseUint32ArraygdprforEachequalintrinsicdefinePropertyserializetyped arraymanagerdeepcloneendpointviewjson-schema-validationiteratorfunctionalstyleelectrondeeputilsaccessormochalintrecursiveHyBi.gitignoreUint8Arraymanipulationtermeslintfoldertrimamazonishttplocationmobilehas-ownObject.entriesstyleguideutilitieshardlinksglobal this valueasyncdatedom-testing-libraryrm -frweakmapjsdomassertscreatecircularnopestringvalidatemonorepobundlerObject.getPrototypeOfpostcsswindowmoduleES2020core-jsexecfileES3ECMAScript 3ObjectoutputtakerequestjsdiffperformancelinkfastifyMapcollection.es6ecmascriptclicommandrdsistanbultc39threeisConcatSpreadableescaperuntimees7executedataviewargumentextendPushelbECMAScriptairbnbESnpmArray.prototype.findLastIndexIteratordayjscheckhigher-orderestreewalkinferencelanguageregexnamesenumerableURLSearchParamscurriedlistenerstapWebSocketscloudwatchgesturesbundlingbyteeslintpluginfast-deep-copyfindLastObject.fromEntriesTypeScriptfastcloneimportupclass-validatorlogES5writearraybuffertoStringTagredux-toolkitcoverageapolloflatastfunction.lengthprototestingcharacterscjk.envhelpersSymbolchinesebabelconfiglengthsortes6concatMapformattingsyntaxerrorrobustoptimizerec2vestpackage.jsonlocalqsphoneTypedArrayinstrumentationpositiveshebang3dSetprogressutilityglacierassignsestypesafesinatragetterinternalfast-cloneglobala11yflatMaptelephoneeslintconfigrmdirvisualdescriptionapichildeast-asian-widthdeletetrimLeftmakeconsumevalidationbrowserwhatwgcopyObject.assign6to5ES2018streamschemefindjQueryArray.prototype.includesreact animationbyteLengthArrayeventEmitterregexpCSSStyleDeclarationjsxsetPrototypeOfprototypeuuidsymbolcode pointses2016Object.keysbufferexpresslibphonenumberemitshrinkwrapextradomweaksetglobalsECMAScript 7schemaprotobufwgetmkdirscolumnanimationlastregular expressionsimmerFunction.prototype.nameserializationsharedarraybufferwarningregulardrag256typeerrorajvtrimRighturlreverseoptionkarmaformatlookfastcopySystem.globalbabel-coresometypescloudformationrulesguidloadingsource mapforminternal slotformshttpsPromiseJSONroutetestutil.inspecttypanionindicatorcss-in-jsdefinematchessnsdropArray.prototype.filterhashfpsBigUint64ArraywritablebeanstalkcloudsearchES2019valuesiteratereadableassertefficientroutingRegExp#flagsperformanttrimEndimmutableArrayBuffer#slicesubprocessloggingjoideep-cloneinstallerharmonyECMAScript 5eventDispatcherreact-hooksroute53equalityvarES2023pushatomworkspace:*preprocessordebuggerzxWebSocketserializerObservablesrangeerrorbrowserslistsetteravapostcss-pluginfullwidthjestzerol10nxtermbintoobjectkinesisreadString.prototype.trimprotocol-buffersloadbalancingcachespawnsafeevents
2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago