10 lines
262 B
JavaScript
10 lines
262 B
JavaScript
import { helper } from '@ember/component/helper';
|
|
|
|
export function isStr([val]) {
|
|
return typeof val === 'string' ||
|
|
((!!val && typeof val === 'object') &&
|
|
Object.prototype.toString.call(val) === '[object String]');
|
|
}
|
|
|
|
export default helper(isStr);
|