MDN教程上的题目,如何将isShort函数转成箭头函数,请大家帮帮忙
function isShort(name) { return name.length < 5; } const shortNames = names.filter(isShort); para.textContent = shortNames;
const isShort = (name) = > name.length < 5;