mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
16 lines
299 B
JavaScript
16 lines
299 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { helper } from '@ember/component/helper';
|
|
|
|
function merge(positional) {
|
|
return positional.reduce((accum, val) => {
|
|
accum = { ...val, ...accum };
|
|
return accum;
|
|
}, {});
|
|
}
|
|
|
|
export default helper(merge);
|