mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 07:13:44 +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);
|