mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 05:03:43 +08:00
1a2bf52656
Usage : ``` {{#if (includes fooArray foo)}} ``` ``` {{#if (includes fooString foo)}} ```
8 lines
165 B
JavaScript
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);
|