Skip to content

Instantly share code, notes, and snippets.

@ckomop0x
Last active June 13, 2019 14:20
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/f4eb6acbf82a9e89f580f15c2a377f1b to your computer and use it in GitHub Desktop.
Save ckomop0x/f4eb6acbf82a9e89f580f15c2a377f1b to your computer and use it in GitHub Desktop.
Old file with utils
// 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