const get5Characters = (string)=>string.substring(0,5) ... 事實上pipe compose 等實用的功能都有人整理成函式庫,例如:ramda、lodash、underscore。
確定! 回上一頁