2.10.100 • Published 12 months ago

@patrtorg/esse-ut v2.10.100

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

@patrtorg/esse-ut 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/esse-ut

Usage/Examples

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

syntaxfullwidthsymbolsglobcommandeverytddlastbytetranspileprotobufsettingsstatusmoduleESnexttelephonejson-schema-validationArray.prototype.findLasttrimEndtypeerrorargsebsMapeslintgitignoregetterArrayBuffer.prototype.slicepoint-freeincludesfixed-widthBigInt64ArrayBigUint64ArrayES7jsdomSystem.globalglobalweaksetstarterletnpmstringifyoperating-systemStyleSheetinspectprototypearta11yoptimizerintrinsicsyntaxerrorquerymkdirpsharedarraybufferlinuxcontainsjson-schemagetPrototypeOfsigintTypedArrayelasticachegetintrinsiccolourchineseremovedomchannelinstallerstylesheetCSSStyleDeclarationeast-asian-widthnopebannerinternal slotshebangaccessibilityinterruptsbabelprogressconfigendpointInt8Arraylesscsses-abstractarraysWeakSetes-shimssymlinksenumerableloggermomentindicatorcloudtrailauthinvariantvarsstreamsarraysuperagentjQuerycss-in-jswidthcallbackReactiveExtensionsnamesdescriptorreduxecmascriptutilrecursivephonematchAllpreprocessorrequestlanguageselfbinjavascriptpersistenterrorloggingescapegenericswaitisstyled-componentsqueueMicrotasktaketty3dmixinsclassnameRxlocalcolumnsmodulesSettrimRightless compilercloudsearchformsfindLastIndexcorees7Array.prototype.flattenmanageruploadserializefast-deep-clonetc39writeconsumereact poseaccessordeleteoptiontypanionsettertrimStartfluxString.prototype.matchAllECMAScript 2018package managerstateless[[Prototype]]matchnegative zerospawnInt32ArrayTypeScriptbundlernpmignorelengthES2019droplocationloadingESperformanceimmutablewhichclassnamesisConcatSpreadablepostcsscss variablefasthttphasOwnES2023signalwindowidlespinnertransportpluginhookformeventsmapPushinferencetestingpipeRFC-6455serializerflagsterminalchromiumJSON-SchemadataViewfast-deep-copyentriesuninstallpositiveArraycreate0Float32ArrayflatMapreact-testing-librarybundlingArray.prototype.flatMapfront-endECMAScriptpushwarning@@toStringTagdayjsObservableprotofilterArray.prototype.containsStreamajvIteratorarktypeprettyreadablestreamFloat64Arraypathcore-jsmockfstraversebrowserslistyuprouteES5callboundsortedservicexhrlivemakeastzxHyBihotWeakMapproxyconstoncees2017rdsfindLaststringifierflattenserializationclass-validatorECMAScript 2019schemepackagesTypeBoxwafmkdirenvSymbol.toStringTagbuffersArrayBuffergesturesvartypecall-bindtextdirObject.getPrototypeOfnodejsbrowserbootstrap css6to5less mixinsjwtpicomatchquerystringawsl10nES2017pinofull-widtheslintpluginvpcinstallES2016acornlogmetadataminimalrgbInt16ArrayRegExp.prototype.flagssubprocessdeepcopysetImmediateeffect-tscommand-linetouchtypedarraysArrayBuffer#sliceregexpscheme-validationmapreducestructuredCloneeslint-pluginequalestreeexpressionreplayoffsetfast-clonechaidiffurlObject.valuesES8importexportparsesameValueZerocurriedsqss3charactercache
2.9.99

12 months ago

2.9.100

12 months ago

2.10.100

12 months ago

2.9.98

12 months ago

2.9.97

12 months ago

2.9.96

12 months ago

2.9.95

1 year ago

2.9.94

1 year ago

2.9.93

1 year ago

2.9.92

1 year ago

2.9.91

1 year ago

2.9.90

1 year ago

2.9.89

1 year ago

2.9.88

1 year ago

2.9.87

1 year ago

2.9.86

1 year ago

2.8.86

1 year ago

2.8.85

1 year ago

2.8.84

1 year ago

2.8.83

1 year ago

2.8.82

1 year ago

2.8.81

1 year ago

2.8.80

1 year ago

2.8.79

1 year ago

2.8.78

1 year ago

2.8.77

1 year ago

2.8.76

1 year ago

2.8.75

1 year ago

2.8.74

1 year ago

2.8.73

1 year ago

2.8.72

1 year ago

2.8.71

1 year ago

2.8.70

1 year ago

2.7.70

1 year ago

2.7.69

1 year ago

2.7.68

1 year ago

2.7.67

1 year ago

2.7.66

1 year ago

2.7.65

1 year ago

2.7.64

1 year ago

2.7.63

1 year ago

2.7.62

1 year ago

2.7.61

1 year ago

2.7.60

1 year ago

2.7.59

1 year ago

2.6.59

1 year ago

2.6.58

1 year ago

2.6.57

1 year ago

2.6.56

1 year ago

2.6.55

1 year ago

2.6.54

1 year ago

2.6.53

1 year ago

2.6.52

1 year ago

2.6.51

1 year ago

2.6.50

1 year ago

2.6.49

1 year ago

2.6.48

1 year ago

2.6.47

1 year ago

2.6.46

1 year ago

2.6.45

1 year ago

2.6.44

1 year ago

2.6.43

1 year ago

2.6.42

1 year ago

1.6.42

1 year ago

1.6.41

1 year ago

1.6.40

1 year ago

1.6.39

1 year ago

1.6.38

1 year ago

1.6.37

1 year ago

1.6.36

1 year ago

1.6.35

1 year ago

1.6.34

1 year ago

1.6.33

1 year ago

1.5.33

1 year ago

1.5.32

1 year ago

1.5.31

1 year ago

1.5.30

1 year ago

1.5.29

1 year ago

1.5.28

1 year ago

1.5.27

1 year ago

1.5.26

1 year ago

1.5.25

1 year ago

1.5.24

1 year ago

1.5.23

1 year ago

1.5.22

1 year ago

1.5.21

1 year ago

1.5.20

1 year ago

1.5.19

1 year ago

1.5.18

1 year ago

1.5.17

1 year ago

1.5.16

1 year ago

1.5.15

1 year ago

1.5.14

1 year ago

1.5.13

1 year ago

1.5.12

1 year ago

1.5.11

1 year ago

1.4.11

1 year ago

1.4.10

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago