Skip to content

Instantly share code, notes, and snippets.

@ckomop0x
Created June 13, 2019 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckomop0x/75585fc4b26523bc2b7a199fa82d66b3 to your computer and use it in GitHub Desktop.
Save ckomop0x/75585fc4b26523bc2b7a199fa82d66b3 to your computer and use it in GitHub Desktop.
calculateSomethingSpecial.js refactored to a file
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