Instantly share code, notes, and snippets.

@vdeturckheim /sum.ts Secret
Created Jun 21, 2018

Embed
What would you like to do?
function sum(a: number[]): number {
return a.reduce((x, y) => x + y, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment