JSFiddle - React, Tailwind, and code Playground
JavaScript
var numobj = { num : 2 };
var ty = [5,2,3,4];
var xyz = function (i) {
return this.num + i;
};
var f = xyz.bind(ty)
console.dir(f);
console.log(f(1));
//console.dir(xyz.call(numobj,5))
var numobj = { num : 2 };
var ty = [5,2,3,4];
var xyz = function (i) {
return this.num + i;
};
var f = xyz.bind(ty)
console.dir(f);
console.log(f(1));
//console.dir(xyz.call(numobj,5))