Home > utils > ii
立即调用函数并返回其返回值。
注:ii = immediately invoke
ii = immediately invoke
Signature:
export declare function ii<R, F extends () => R = () => R>(fn: F): R;
Returns:
R
返回被调用函数的返回值
ii(() => 1) // => 1