🌈 搜索
📅  最后修改于: 2022-03-11 14:48:18.957000             🧑  作者: Mango
const splitAt = (index: number) => (x: string) => [x.slice(0, index), x.slice(index)]