Sha256: a071e330c9ca5fc021d58064b90e578506190e622bef68a0c7f1bc864b706709

Contents?: true

Size: 157 Bytes

Versions: 3

Compression:

Stored size: 157 Bytes

Contents

export function hashToArgs(hash) {
    if (hash === null)
        return null;
    let names = hash[0].map(key => `@${key}`);
    return [names, hash[1]];
}

Version data entries

3 entries across 3 versions & 1 rubygems

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