UNPKG

@myorders/ember-ui

Version:

Myorders UI provides all the interface components, helpers, services and utilities for building a Myorders extension into the Console.

14 lines (10 loc) 297 B
import { helper } from '@ember/component/helper'; export default helper(function isBoolValue([value]) { if (typeof value === 'boolean') { return true; } if (typeof value === 'string') { return ['true', 'false', '1', '0'].includes(value); } return false; });