JSFiddle - React, Tailwind, and code Playground
JavaScript
function myTest(callback) {
var funcAsString = callback.toString();
alert('I was passed ' + funcAsString);
}
myTest(function(a, b) { return a > b; });
function myTest(callback) {
var funcAsString = callback.toString();
alert('I was passed ' + funcAsString);
}
myTest(function(a, b) { return a > b; });