Sha256: e9dda8b483ae642dd678668142676d2e0e3bd9df2f8fa1b9b41499b6205b7e34
Contents?: true
Size: 219 Bytes
Versions: 1
Compression:
Stored size: 219 Bytes
Contents
import { isArray } from '@ember/-internals/runtime'; export default function toBool(predicate) { if (isArray(predicate)) { return predicate.length !== 0; } else { return !!predicate; } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.6.0.0 | dist/es/@ember/-internals/glimmer/lib/utils/to-bool.js |