Created
June 13, 2019 14:23
-
-
Save ckomop0x/75585fc4b26523bc2b7a199fa82d66b3 to your computer and use it in GitHub Desktop.
calculateSomethingSpecial.js refactored to a file
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
import sum from "./sum"; | |
export default 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