2.6.118 • Published 10 months ago

@patrtorg/totam-error v2.6.118

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

@patrtorg/totam-error 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/totam-error

Usage/Examples

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

functionalcore-jsgenericstrimdeep-cloneconfigurablenativehashFunction.prototype.nameexpressinstrumentationfastspringcoveragewhatwgbufferpyyamlmanagerdom-testing-librarydiffdeepcopynamesnodeECMAScript 3restpostcssECMAScript 5codesstringifierjoiES7queueMicrotaskpackage.jsonTypeBoxcurriedponyfilllocationentriesinferenceflatidentifierspositivestarterclasseslookfpec2ECMAScript 6Setrm -frstyleavaPushlintformatthreeupconsumewalkingReactiveExtensionssliceES6xhrtddES2021settingsjQuerylastlanguagesymbolstypedarraysreal-timecreatehookformemitchildObservablebinemojimapreduceincludesWeakMapmulti-packageiteratorstringifyfastcopyIteratoroptionstreamsgroupByqueuecolumnInt32Arrayfunction.lengthfunctionautoprefixerisframeworkform-validationhttpsrgbcollectionUnderscoreposepathremoveatombeanstalktoArraydatecloudwatchsorteddeep-copycall-boundkeysextraexpressionArrayBuffer.prototype.slicesameValueZeronegativeES2023RegExp.prototype.flagsArray.prototype.includesprotobufclassnamesajaxflatMapnodejsmodulechaiECMAScript 7chinesetapglacierairbnbfantasy-landspinnerssetImmediatedatabddparsersetPrototypeOfscheme-validationomitnpmignoreflagwidthmrutypanionimmerkoreanimportexportselfefficientbrowserlistbabellogvalidatorfullwidthfeedeslintrequestlockfilecommand.envRegExp#flagsvalidateprotoES2016buffersbrowserslistjson-schematoolsjsdiffstructuredCloneramdacloudtrailrobustfastifyclass-validatornegative zerobinaryistanbuleventsregexpcloudformationgetPrototypeOfestreeSystem.globalpromiselibphonenumberargumentregexes-shim APIes2015reducejsdomglobal objectbannerpropertyjasmineequalpipeassertsMicrosoftcollection.es6readreadableprotocol-buffersfolderTypeScriptcirculareslintconfigObjectmetadatareact-hooksqsdropschematimeuuidhelpereventDispatchertypeerrorESnext__proto__busytypedarrayes6toolkitforEach3dkeycryptojsonschemalocalStreamsmobileaccessibilityprogresses8apollospeedfile systemmatchAllvpcCSSStyleDeclarationaccessorArrayBufferglobal this valueidInt8Arrayjson-schema-validationes-abstractcolorscss-in-jsobjectmkdirpescapeObject.assignparentECMAScript 2022descriptionpropbytecloudfrontsuperagentStyleSheetamazonmatchesutilsURLsyntaxerrortranspilereducersetsomeconfigrecursivexmlSymbol.toStringTagperformancecontainsqueryes2018emrRxJSwritecsscommand-linetoStringTagcoreio-tsredux-toolkitanimationidlees2017jsObject.isrmhigher-ordergettrimLefthtmlowntestlruESstylesrandomutilECMAScript 2023schemeregular expressionECMAScript 2020Object.keyswaitshamtoSortedtypeofbyteOffsetnopehelpersi18ntexttransformwgetassigngroupstringrequirehasOwnguidsestrimEndregular expressionsnumberjapanesemonorepoECMAScript 2016fpsfromtelephoneimmutableasteriskstakechromeArray.prototype.flatietc39appautoscalingpackage managerInt16ArraywindowdescriptorsES2017look-upgraphqloncemkdirscacheCSStrimStartexecfilefixed-widthprivate dataworkflowdirectoryawsajvgetintrinsicvisualsideYAMLwalkserializationquerystringhasUint16ArrayexecrulesObject.valuesplugincensorsubprocessclassnamevalueloadingagenttslibRFC-6455testingbyteLengthtapehardlinksenumerableresolveasciifigletunicoderegular-expressionhttpMapastPromiselistenerssharedarraybufferargvloadbalancingregularvarsnsdayjsreadablestreamcopycallbindsinatrashellweakmapObject.getPrototypeOfenvironmentcall-bindtostringtagsharedflattenAsyncIteratormatchfilerm -rfdeepclonemergeworkspace:*instreamRxdeterministicbinariesUint8ArrayfindspawnlengthsettersuperstructWebSocketsslotfnmatchpicomatchmanipulationfast-copyserializerpnpm9rfc4122pushquoteprefixperformanteveryviewassertproxyvarsarraysdeletefulleast-asian-widthstoragegatewayruntimetouches-shimsUint8ClampedArraydependenciesforktypearraysearchvestES2018importstylingredirectwafbundlingfast-deep-copycloneloggerroute53packagesSymbolassertionelbString.prototype.trimObject.fromEntriesvalueseslintpluginroutershimignorefast-clonefunctionsutil.inspectES2020user-streamsBigUint64Arraysafefull-widthminimalredactacornjshintArray.prototype.flatMapobjcharacterstypedfetchflagswarningrdsvalidationmakezodUint32ArrayReactiveXprototypeuninstallexecuteeffect-tsawesomesauceinternal slothasOwnPropertytyped arrayreduxiterateweaksetpreprocessorcomparetraversespecsource mapjson-schema-validatorartECMAScript 2018@@toStringTagmochaWeakSetArrayBuffer#slicereverseeventEmitterES2019reworkwhichcompilervaliddotenvoptimizernameoutput6to5popmotiondeeprestfulendercolourStreamrsspropertiesrapidjsonpinowebformsinspectfsgitignoreasyncreactbindsymlinksfind-upArray.prototype.findLastIndexelasticacheapiserializereact poseinstallECMAScript 2017modulesfastclonetoReversedworkerArrayArray.prototype.findLastyuppolyfillnpmES8charactercoercibleecmascriptendpointprivatechromiumreversedpostcss-pluginchecktesterdefineECMAScriptindicatorECMAScript 2015[[Prototype]]256Float64ArrayfinduprouteconsolezerottywaapiebscloudsearchBigInt64ArrayconcatMapHyBidependency managerarktypeloggingES2022typescurlshebangmake dirdataViews3-0react-testing-librarygesturesdefinePropertyterminalsqsstabletsgetterdataviewfindLastIndexcallboundoptimistpruneglobchannelObject.definePropertymapjsxES5arraybuffermovepureiamArray.prototype.containsdynamodbspinnershrinkwrapdescriptorwritabletypesafeconcatkarmaes5getoptinvariantgdprcode pointsinternalenvironmentsisConcatSpreadablecommanderespreeArray.prototype.flattenformattingtacitReflect.getPrototypeOfoffseterrores7simpledbequalityconst.gitignoreURLSearchParamspatchWebSocketbrowsereslint-pluginparentsString.prototype.matchAllglobalThissyntaxkinesisglobalgetOwnPropertyDescriptorinstallerletelectronyamlObservablescallesrangeerrortransportreact-hook-form$.extendcolumnsdebuggerstyleguidepackageTypedArrayurl
2.6.116

10 months ago

2.6.117

10 months ago

2.6.118

10 months ago

2.6.115

10 months ago

2.6.114

10 months ago

2.6.113

10 months ago

2.6.112

10 months ago

2.6.111

10 months ago

2.6.110

10 months ago

2.6.109

10 months ago

2.6.108

10 months ago

2.6.107

10 months ago

2.6.106

10 months ago

2.6.105

10 months ago

2.6.104

10 months ago

2.6.103

10 months ago

2.6.102

10 months ago

2.6.101

10 months ago

2.6.100

10 months ago

2.6.99

10 months ago

2.6.98

10 months ago

2.5.98

10 months ago

2.5.97

11 months ago

2.5.96

11 months ago

2.5.95

11 months ago

2.5.94

11 months ago

2.5.93

11 months ago

2.5.92

11 months ago

2.5.91

11 months ago

2.5.90

11 months ago

2.5.89

11 months ago

2.5.88

11 months ago

2.5.87

11 months ago

2.5.86

11 months ago

2.5.85

11 months ago

2.5.84

11 months ago

2.5.83

11 months ago

2.5.82

11 months ago

2.5.81

11 months ago

1.5.81

11 months ago

1.5.80

11 months ago

1.5.79

11 months ago

1.5.78

11 months ago

1.5.77

11 months ago

1.5.76

11 months ago

1.5.75

11 months ago

1.5.74

11 months ago

1.5.73

11 months ago

1.4.73

11 months ago

1.4.72

11 months ago

1.4.71

11 months ago

1.3.71

11 months ago

1.3.70

12 months ago

1.3.69

12 months ago

1.2.69

12 months ago

1.2.68

12 months ago

1.2.67

12 months ago

1.2.66

12 months ago

1.2.65

12 months ago

1.2.64

12 months ago

1.2.63

12 months ago

1.2.62

12 months ago

1.2.61

12 months ago

1.2.60

12 months ago

1.2.59

12 months ago

1.2.58

12 months ago

1.2.57

12 months ago

1.2.56

12 months ago

1.2.55

12 months ago

1.1.55

12 months ago

1.1.54

12 months ago

1.1.53

12 months ago

1.1.52

1 year ago

1.1.51

1 year ago

1.1.50

1 year ago

1.1.49

1 year ago

1.1.48

1 year ago

1.1.47

1 year ago

1.1.46

1 year ago

1.1.45

1 year ago

1.1.44

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.39

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

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