小于 1 分钟
Home > @hz-9/algorithm > ToNumberFn
ToNumberFn type
Convert any type to a number. This function should ensure that different objects in the target dataset are not converted to the same number.
将任意类型转换为数字。 此函数应保证目标数据集中不同对象不会被转换为相同数字。
Signature:
export type ToNumberFn<T> = (val: T) => number;