1.0.1 • Published 10 months ago

@jswork/next-invoke v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

next-invoke

Invoke a method with context.

version license size download

installation

yarn add @jswork/next-invoke

usage

import '@jswork/next-invoke';

const obj1 = {
  name: 'obj1',
  fn1: function(arg1, arg2) {
    console.log('args:', arg1, arg2);
    return this.name + '_FEI';
  }
};

const rs = nx.invoke(obj1, 'fn1', ['arg1', 'arg2']);

// obj1_FEI
// args: arg1 arg2

license

Code released under the MIT license.

1.0.1

10 months ago

1.0.0

10 months ago