discourse/app/assets/javascripts/truth-helpers/addon/helpers/not.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
310 B
JavaScript
Raw Normal View History

import Helper from "@ember/component/helper";
import truthConvert from "../utils/truth-convert";
export function not(params) {
for (let i = 0, len = params.length; i < len; i++) {
if (truthConvert(params[i]) === true) {
return false;
}
}
return true;
}
export default Helper.helper(not);