Sha256: 483ece452379cf4acb9021e81f833039d2ded49ffb25b4673fb89e19f0131712

Contents?: true

Size: 179 Bytes

Versions: 3

Compression:

Stored size: 179 Bytes

Contents

const { isArray } = Array;
export default function makeArray(obj) {
    if (obj === null || obj === undefined) {
        return [];
    }
    return isArray(obj) ? obj : [obj];
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/@ember/-internals/utils/lib/make-array.js
discourse-ember-source-3.5.1.1 dist/es/ember-utils/lib/make-array.js
discourse-ember-source-3.5.1.0 dist/dist/es/ember-utils/lib/make-array.js