JSFiddle - React, Tailwind, and code Playground

by batcave

JavaScript

function sum(x, y) {
	return x + y;
}

const bound = sum.bind(this, 1, 3);
console.log(sum.bind(this, 1, 3)())