Sha256: 91933b0808fbc3a77bb5ed472c37f856d0d7d781792dd77867533d14cca7411a

Contents?: true

Size: 207 Bytes

Versions: 2

Compression:

Stored size: 207 Bytes

Contents

import { isArray } from 'ember-runtime';
export default function toBool(predicate) {
    if (isArray(predicate)) {
        return predicate.length !== 0;
    }
    else {
        return !!predicate;
    }
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
discourse-ember-source-3.5.1.1 dist/es/ember-glimmer/lib/utils/to-bool.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-glimmer/lib/utils/to-bool.js