mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 08:55:43 +03:00
14 lines
267 B
JavaScript
14 lines
267 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { helper } from '@ember/component/helper';
|
|
|
|
function invokeFn([scope, fn]) {
|
|
let args = arguments[0].slice(2);
|
|
return fn.apply(scope, args);
|
|
}
|
|
|
|
export default helper(invokeFn);
|