🌈 搜索
📅  最后修改于: 2022-03-11 14:58:07.430000             🧑  作者: Mango
const truncate = (input) => input.length > 5 ? `${input.substring(0, 5)}...` : input;