hardlounge/client/js/libs/handlebars/equal.js
2016-10-09 17:55:37 -04:00

14 lines
194 B
JavaScript

"use strict";
Handlebars.registerHelper(
"equal", function(a, b, opt) {
a = a.toString();
b = b.toString();
if (a === b) {
return opt.fn(this);
}
return opt.inverse(this);
}
);