@jswork/next-invoke
v1.0.1
Published
Invoke a method with context.
Downloads
3
Readme
next-invoke
Invoke a method with context.
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.