import { helper } from '@ember/component/helper'; export function isPlainVal([val]) { return typeof val === 'string' || typeof val === 'number' || typeof val === 'boolean' || ( (!!val && typeof val === 'object') && ['[object String]', '[object Number]', '[object Boolean]' ].includes(Object.prototype.toString.call(val)) ); } export default helper(isPlainVal);