feat: 微客宝H5客户端 - 基础架构+核心页面
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
function closest(arr, target) {
|
||||
return arr.reduce(
|
||||
(pre, cur) => Math.abs(pre - target) < Math.abs(cur - target) ? pre : cur
|
||||
);
|
||||
}
|
||||
export {
|
||||
closest
|
||||
};
|
||||
Reference in New Issue
Block a user