Showing
1 changed file
with
4 additions
and
4 deletions
@@ -30,12 +30,12 @@ exports.image = (url, width, height, mode) => { | @@ -30,12 +30,12 @@ exports.image = (url, width, height, mode) => { | ||
30 | * @param {[object]} options 上下文环境,一般不手动传 | 30 | * @param {[object]} options 上下文环境,一般不手动传 |
31 | * @return {[boolen]} | 31 | * @return {[boolen]} |
32 | */ | 32 | */ |
33 | -exports.ifEqualTo = (v1, v2, _options) => { | ||
34 | - if (v1 === v2) { | ||
35 | - return _options.fn(this); // eslint-disable-line | 33 | +exports.isEqual = (v1, v2, _options) => { |
34 | + if (_.isEqual(v1, v2)) { | ||
35 | + return _options.fn(this); // eslint-disable-line | ||
36 | } | 36 | } |
37 | 37 | ||
38 | - return _options.inverse(this); // eslint-disable-line | 38 | + return _options.inverse(this); // eslint-disable-line |
39 | }; | 39 | }; |
40 | 40 | ||
41 | /** | 41 | /** |
-
Please register or login to post a comment