1.3.15 • Published 11 months ago
@kollorg/tempora-maiores v1.3.15
@kollorg/tempora-maiores 
Robustly .call.bind()
a function.
Getting started
npm install --save @kollorg/tempora-maiores
Usage/Examples
const assert = require('assert');
const callBind = require('@kollorg/tempora-maiores');
const callBound = require('@kollorg/tempora-maiores/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
1.3.15
11 months ago
1.3.14
11 months ago
1.3.13
11 months ago
1.3.12
11 months ago
1.3.11
11 months ago
1.2.11
11 months ago
1.2.10
11 months ago
1.2.9
11 months ago
1.1.9
11 months ago
1.1.8
11 months ago
1.1.7
11 months ago
1.1.6
11 months ago
1.1.5
11 months ago
1.1.4
12 months ago
1.1.3
12 months ago
1.1.2
12 months ago
1.1.1
12 months ago
1.1.0
12 months ago
1.0.0
12 months ago