Skip to content

Instantly share code, notes, and snippets.

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

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
You can’t perform that action at this time.