reduce () method. If you're using modern Javascript (ES6 and beyond), this might be the neatest and quickest solution. Example:
確定! 回上一頁