...
|
...
|
@@ -30,12 +30,12 @@ exports.image = (url, width, height, mode) => { |
|
|
* @param {[object]} options 上下文环境,一般不手动传
|
|
|
* @return {[boolen]}
|
|
|
*/
|
|
|
exports.ifEqualTo = (v1, v2, _options) => {
|
|
|
if (v1 === v2) {
|
|
|
return _options.fn(this); // eslint-disable-line
|
|
|
exports.isEqual = (v1, v2, _options) => {
|
|
|
if (_.isEqual(v1, v2)) {
|
|
|
return _options.fn(this); // eslint-disable-line
|
|
|
}
|
|
|
|
|
|
return _options.inverse(this); // eslint-disable-line
|
|
|
return _options.inverse(this); // eslint-disable-line
|
|
|
};
|
|
|
|
|
|
/**
|
...
|
...
|
|