4.4.97 • Published 10 months ago

@patrtorg/beatae-cum-rerum v4.4.97

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@patrtorg/beatae-cum-rerum Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @patrtorg/beatae-cum-rerum

Usage/Examples

const assert = require('assert');
const callBind = require('@patrtorg/beatae-cum-rerum');
const callBound = require('@patrtorg/beatae-cum-rerum/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

typeerrornpmignoreregexpnegativevestforEachcss-in-jsglacierincludescirculardragarrayswindowargvArray.prototype.flatmapCSSReactiveXimportexporteventDispatcherformattingregular-expressionArray.prototype.findLastIndexES3lockfilepostcssRegExp#flagschineseoffsetbabel-coreserializationassertless compilerObject.entriesRegExp.prototype.flagsdireffect-tsignorejsdiffArrayBuffer.prototype.sliceFloat32ArrayObject.fromEntriestyped arrayescss nestingvpcdom-testing-libraryreadablecloudtrailprototypeelectronasciireplaytddES2018nameclientimmutableJSON-SchemastatelessstylingenderzxnamesflagswritecallboundArrayexecfilefilterponyfillinputfindLastIndexautoprefixerreact-hook-formhttpsstoragegatewayauthenticationdatastructuretranspilerreact animationtypedarraysECMAScript 2020ttyiterationStreamsposehelperefficientbootstrap cssArray.prototype.flattendeepspechasOwnPropertylanguagelinkES2023stringtoReversedprogressdeepcopyfantasy-landzeroES2021fnmatchcertificatessettingsuuidentriesreadablestreamgetOwnPropertyDescriptorless mixinss3shamECMAScript 2017termec2RFC-6455Object.keysInt32Arrayreact-testing-libraryoptimistwhatwgtoolstesternativeCSSStyleDeclarationpinodependency managerloggingintrinsiccoerciblemkdirgdpr256structuredClonebannerreducersigtermrapidglobObject.definePropertycolumnfastcopymodulescolumnstoobjectES6l10ndotenvflagsqsownArray.prototype.includescjkcompiler[[Prototype]]browserfunction.gitignoreArrayBuffer#sliceinstallspeedsuperagentjson-schema-validatordefinePropertycomputed-types@@toStringTaglengthuser-streamscensorapiobjurloncetoolkitwarningpackagestypesafefast-cloneclitelephonejestschemedayjssigintchildfile systeminternal slotexit-codesetterchromeoptimizersubprocessESnextpruneswfauthdataViewfullwidthawesomesaucechromiumminimalopensslprettypreprocessorRxreal-timeexpressiongroupcoretacitWeakSetbusyTypedArrayArrayBufferes8mobileisConcatSpreadableresolvecacheregular expressionArray.prototype.filterpropertygetterrecursiveapolloarktypees2016utilcommandcurriedjwtReflect.getPrototypeOfebskeyselmreverseIteratorlinuxglobalThisindicatorhas-owndiffObject.assignECMAScriptMaplocalprocessglobalfast-deep-cloneflattenES2022comparees-shim APInodetsfunction.lengthpluginjson-schemaquoteclasseswalkpropertiesmatchesrfc9562package.jsoncurllintwgetassigntrimEndURLstringifypasswordasterisksvisualconfigroutingqueueMicrotaskchecktostringtagpushArray.prototype.flatMapes6immerrangeerrorlastes2018private dataprefixmanagerInt8Arraypreserve-symlinkscollection.es6elbjsdomrdsrgbtakeenvironmentbuffersES2015String.prototype.trimspawnutilitysharedarraybufferimportajvstyleterminalloggerstablebuffermulti-packageECMAScript 2018eventses2015bytei18nviewassertionpackage managerutilities$.extendfetchstylesheetprotoreact-componentBigUint64ArrayreduxhashexecuteencryptionestreeargscolorswafhttpsnsECMAScript 2019deepclonebyteOffsetbootstrap lessirqArray.prototype.findLastpromiseschemareadpopmotiontestingloadingnopeajaxhigher-orderdeep-copyYAMLmapreduceparsemovebrowserlistreusefasttimejshintglobalshotinstallerweakmapeslintplugincallbindsyntaxerrorlibphonenumberes-shimsparsingshrinkwrappolyfilltrimLeftECMAScript 2023ES5parserphonetslib-0URLSearchParamsfigletcryptrulesbyteLengthgetoptjoiansiwaapitranspilees-abstractObject.valueschaiwidthlesscsskinesissesslotpathsuperstructserializesimpledbESspinnerssharedprotocol-buffersperformantObject.getPrototypeOfsetImmediateuploadperformanceformproperrordeterministicweaksetcall-boundeventEmitterrequestcollectionutil.inspectoutputbabelclonecall-bindjsxhandlerszodserializerECMAScript 6toArraylruio-tsmetadatacommand-lineECMAScript 2016findLastjapaneseformscolourtypedfull-widthenumerabledataviewsyntaxhardlinksprivatereversedbindtoStringTagcreateworkerhookformsymlinkinspectregularruntimeassertssignalvalidatetypedarrayequalityvaluereact posetouchqsthreestarterarraygetintrinsicMicrosoftinferencelazypyyamlamazonremovemakesignalsObject.iseslint-pluginless.jspipegenericsclassnamesinterruptsfphelpersObservablesfast-deep-copyautoscalingformatidleHyBixtermfastifyargumenteverydatapredictablepoint-freefunctionsfunctionalsignedvarrequireObjecttoSortedfsObservableshimarraybuffershelldropInt16ArrayvalidregexgetPrototypeOfbcryptvalidatorharmonyelasticachees5matchcolorgesturesoptionTypeBoxpicomatchglobal objectECMAScript 3sliceinternalES8letcalltrimyamlcore-jscss lessnested csssymlinksbddaccessibilityUnderscoredescriptionreacttrimRightstreamsstatefastclonedirectoryFunction.prototype.nameWeakMappersistentstringifierjQuerytypescriptReactiveExtensionsPushWebSocket_.extendcharacterawsbinarieswindowskeymergeiteratefromAsyncIteratoreast-asian-widthbrowserslisttextconsolefilecssquerystringstyled-components__proto__ECMAScript 2021uninstallES2019agentRxJSlisteners3denvironmentsprotobufutilsunicodedatescheme-validationtypesES2017classnamefullieramdamatchAllconcatmkdirpcloudfrontjsescapesortsortedArray.prototype.containsexeccopytypeofacornECMAScript 7number6to5Promisespringwritableboundstreamnegative zerobindefinerandomWebSocketsconcatMapgroupByshebangequalemitcloudformationdomjsonschemafixed-widthqueueECMAScript 2022validationchannelgradients css3beanstalkselfJSONmake dirredux-toolkittc39expresshasOwnsaferobustES7json-schema-validationworkspace:*
4.2.75

11 months ago

4.4.97

10 months ago

4.2.76

11 months ago

4.3.79

11 months ago

4.3.78

11 months ago

4.3.77

11 months ago

4.3.76

11 months ago

4.3.93

10 months ago

4.3.92

10 months ago

4.3.91

10 months ago

4.3.90

10 months ago

4.3.97

10 months ago

4.3.96

10 months ago

4.3.95

10 months ago

4.3.94

10 months ago

4.3.82

11 months ago

3.2.75

11 months ago

4.3.81

11 months ago

4.3.80

11 months ago

4.3.86

10 months ago

4.3.85

10 months ago

4.3.84

10 months ago

4.3.83

11 months ago

4.3.89

10 months ago

4.3.88

10 months ago

4.3.87

10 months ago

3.2.74

11 months ago

3.2.73

11 months ago

3.2.72

11 months ago

3.2.71

11 months ago

3.2.70

11 months ago

3.2.69

11 months ago

3.1.69

11 months ago

3.1.68

11 months ago

3.1.67

11 months ago

3.1.66

11 months ago

3.1.65

11 months ago

3.0.65

11 months ago

3.0.64

11 months ago

3.0.63

11 months ago

3.0.62

11 months ago

3.0.61

11 months ago

3.0.60

11 months ago

3.0.59

11 months ago

3.0.58

11 months ago

3.0.57

12 months ago

3.0.56

12 months ago

3.0.55

12 months ago

3.0.54

12 months ago

3.0.53

12 months ago

3.0.52

12 months ago

3.0.51

12 months ago

3.0.50

12 months ago

3.0.49

12 months ago

3.0.48

12 months ago

3.0.47

12 months ago

3.0.46

12 months ago

3.0.45

12 months ago

3.0.44

12 months ago

3.0.43

12 months ago

3.0.42

12 months ago

3.0.41

12 months ago

3.0.40

12 months ago

3.0.39

12 months ago

3.0.38

12 months ago

3.0.37

1 year ago

3.0.36

1 year ago

3.0.35

1 year ago

3.0.34

1 year ago

3.0.33

1 year ago

3.0.32

1 year ago

3.0.31

1 year ago

3.0.30

1 year ago

2.0.30

1 year ago

2.0.29

1 year ago

2.0.28

1 year ago

2.0.27

1 year ago

2.0.26

1 year ago

2.0.25

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago