github.com/hernad/nomad@v1.6.112/ui/app/helpers/invoke-fn.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import { helper } from '@ember/component/helper';
     7  
     8  function invokeFn([scope, fn]) {
     9    let args = arguments[0].slice(2);
    10    return fn.apply(scope, args);
    11  }
    12  
    13  export default helper(invokeFn);