diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/operators.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/handlebars/operators.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/operators.js b/server/sonar-web/src/main/js/helpers/handlebars/operators.js new file mode 100644 index 00000000000..d042e9db3d3 --- /dev/null +++ b/server/sonar-web/src/main/js/helpers/handlebars/operators.js @@ -0,0 +1,7 @@ +module.exports = function (options) { + var ops = ['LT', 'GT', 'EQ', 'NE']; + + return ops.reduce(function (prev, current) { + return prev + options.fn(current); + }, ''); +}; |