blob: c5b99b69f7b8c1358615066e701b3eb42eba0520 (
plain)
1
2
3
4
5
6
7
8
|
module.exports = function () {
var args = Array.prototype.slice.call(arguments, 0, -1),
options = arguments[arguments.length - 1],
all = args.reduce(function (prev, current) {
return prev && current;
}, true);
return all ? options.fn(this) : options.inverse(this);
};
|