diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/handlebars/ifLengthGT.js')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/handlebars/ifLengthGT.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/ifLengthGT.js b/server/sonar-web/src/main/js/helpers/handlebars/ifLengthGT.js new file mode 100644 index 00000000000..c2c2d7fb025 --- /dev/null +++ b/server/sonar-web/src/main/js/helpers/handlebars/ifLengthGT.js @@ -0,0 +1,5 @@ +import _ from 'underscore'; + +module.exports = function (array, len, options) { + return _.size(array) > len ? options.fn(this) : options.inverse(this); +}; |