discourse/app/assets/javascripts/truth-helpers/addon/helpers/includes.js
Joffrey JAFFEUX 1a2bf52656
DEV: adds includes helper to templates (#18259)
Usage :

```
{{#if (includes fooArray foo)}}
```

```
{{#if (includes fooString foo)}}
```
2022-09-15 14:20:37 +02:00

8 lines
165 B
JavaScript

import Helper from "@ember/component/helper";
export function includes(params) {
return params[0].includes(params[1]);
}
export default Helper.helper(includes);