Last active
June 13, 2019 14:20
-
-
Save ckomop0x/f4eb6acbf82a9e89f580f15c2a377f1b to your computer and use it in GitHub Desktop.
Old file with utils
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Old, old function that lives here from the scratch | |
function multiply (a, b) { | |
return a * b; | |
} | |
function sum (a, b) { | |
return a + b; | |
} | |
function calculateSomethingSpecial(data) { | |
return data.map( | |
dataItem => sum(dataItem.param1, dataItem.param2) | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment