4.4.97 • Published 1 year ago

@patrtorg/beatae-cum-rerum v4.4.97

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

4.4.97

1 year ago

4.2.76

1 year ago

4.3.79

1 year ago

4.3.78

1 year ago

4.3.77

1 year ago

4.3.76

1 year ago

4.3.93

1 year ago

4.3.92

1 year ago

4.3.91

1 year ago

4.3.90

1 year ago

4.3.97

1 year ago

4.3.96

1 year ago

4.3.95

1 year ago

4.3.94

1 year ago

4.3.82

1 year ago

3.2.75

1 year ago

4.3.81

1 year ago

4.3.80

1 year ago

4.3.86

1 year ago

4.3.85

1 year ago

4.3.84

1 year ago

4.3.83

1 year ago

4.3.89

1 year ago

4.3.88

1 year ago

4.3.87

1 year ago

3.2.74

1 year ago

3.2.73

1 year ago

3.2.72

1 year ago

3.2.71

1 year ago

3.2.70

1 year ago

3.2.69

1 year ago

3.1.69

1 year ago

3.1.68

1 year ago

3.1.67

1 year ago

3.1.66

1 year ago

3.1.65

1 year ago

3.0.65

1 year ago

3.0.64

1 year ago

3.0.63

1 year ago

3.0.62

1 year ago

3.0.61

1 year ago

3.0.60

1 year ago

3.0.59

1 year ago

3.0.58

1 year ago

3.0.57

1 year ago

3.0.56

1 year ago

3.0.55

1 year ago

3.0.54

1 year ago

3.0.53

1 year ago

3.0.52

1 year ago

3.0.51

1 year ago

3.0.50

1 year ago

3.0.49

1 year ago

3.0.48

1 year ago

3.0.47

1 year ago

3.0.46

1 year ago

3.0.45

1 year ago

3.0.44

1 year ago

3.0.43

1 year ago

3.0.42

1 year ago

3.0.41

1 year ago

3.0.40

1 year ago

3.0.39

1 year ago

3.0.38

1 year 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