2.10.100 • Published 2 years ago

@patrtorg/esse-ut v2.10.100

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

2 years ago

2.9.100

2 years ago

2.10.100

2 years ago

2.9.98

2 years ago

2.9.97

2 years ago

2.9.96

2 years ago

2.9.95

2 years ago

2.9.94

2 years ago

2.9.93

2 years ago

2.9.92

2 years ago

2.9.91

2 years ago

2.9.90

2 years ago

2.9.89

2 years ago

2.9.88

2 years ago

2.9.87

2 years ago

2.9.86

2 years ago

2.8.86

2 years ago

2.8.85

2 years ago

2.8.84

2 years ago

2.8.83

2 years ago

2.8.82

2 years ago

2.8.81

2 years ago

2.8.80

2 years ago

2.8.79

2 years ago

2.8.78

2 years ago

2.8.77

2 years ago

2.8.76

2 years ago

2.8.75

2 years ago

2.8.74

2 years ago

2.8.73

2 years ago

2.8.72

2 years ago

2.8.71

2 years ago

2.8.70

2 years ago

2.7.70

2 years ago

2.7.69

2 years ago

2.7.68

2 years ago

2.7.67

2 years ago

2.7.66

2 years ago

2.7.65

2 years ago

2.7.64

2 years ago

2.7.63

2 years ago

2.7.62

2 years ago

2.7.61

2 years ago

2.7.60

2 years ago

2.7.59

2 years ago

2.6.59

2 years ago

2.6.58

2 years ago

2.6.57

2 years ago

2.6.56

2 years ago

2.6.55

2 years ago

2.6.54

2 years ago

2.6.53

2 years ago

2.6.52

2 years ago

2.6.51

2 years ago

2.6.50

2 years ago

2.6.49

2 years ago

2.6.48

2 years ago

2.6.47

2 years ago

2.6.46

2 years ago

2.6.45

2 years ago

2.6.44

2 years ago

2.6.43

2 years ago

2.6.42

2 years ago

1.6.42

2 years ago

1.6.41

2 years ago

1.6.40

2 years ago

1.6.39

2 years ago

1.6.38

2 years ago

1.6.37

2 years ago

1.6.36

2 years ago

1.6.35

2 years ago

1.6.34

2 years ago

1.6.33

2 years ago

1.5.33

2 years ago

1.5.32

2 years ago

1.5.31

2 years ago

1.5.30

2 years ago

1.5.29

2 years ago

1.5.28

2 years ago

1.5.27

2 years ago

1.5.26

2 years ago

1.5.25

2 years ago

1.5.24

2 years ago

1.5.23

2 years ago

1.5.22

2 years ago

1.5.21

2 years ago

1.5.20

2 years ago

1.5.19

2 years ago

1.5.18

2 years ago

1.5.17

2 years ago

1.5.16

2 years ago

1.5.15

2 years ago

1.5.14

2 years ago

1.5.13

2 years ago

1.5.12

2 years ago

1.5.11

2 years ago

1.4.11

2 years ago

1.4.10

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago