contains.js 279 B

123456
  1. module.exports = function(needle, haystack, options) {
  2. // needle = Handlebars.escapeExpression(needle);
  3. // haystack = Handlebars.escapeExpression(haystack);
  4. return (haystack.indexOf(needle) > -1) ? options.fn(this) : options.inverse(this);
  5. // return options.fn(this);
  6. };