Appearance
创建一个函数,调用 func 时,接受数组参数并将其展开。
func
import { spread } from '@base-web-kits/base-tools-ts'; const say = spread((who, what) => { return who + ' says ' + what; }); say(['fred', 'hello']); // 结果: 'fred says hello'
func (Function)
start (number)
(Function)