• This project
    • Loading...
  • Sign in

Chat_Bot / KaKao_ChatBot

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • KaKao_ChatBot
  • node_modules
  • std
  • sum.js
  • 윤준현's avatar
    UseCallback · 4536b099 ...
    4536b099
    Shit Callback
    윤준현 authored 2018-11-26 21:31:38 +0900
sum.js 161 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8
module.exports = function sum(list, fn) {
	if (!list) { return 0 }
	var total = 0
	for (var i=0; i<list.length; i++) {
		total += fn(list[i])
	}
	return total
}