Skip to content

Instantly share code, notes, and snippets.

@szmeku
Created March 24, 2020 15:08
Show Gist options
  • Save szmeku/e8ec7e5f864f5a07b1eb1b397af09849 to your computer and use it in GitHub Desktop.
Save szmeku/e8ec7e5f864f5a07b1eb1b397af09849 to your computer and use it in GitHub Desktop.
getPlatesWithId = () => {
map
logika
}
// refactor to
plateToTableItem = (plate) => logika, return tableItem;
getBarcodes = (selectedId, plates) => logika2, plates.map(plateToTableItem)
// refactor to
plateToBarcode = (selectedId, plate) => plateToTableitem, logika2
plates.map(platetoBarcode)
plates.map(_.pipe(
plateToTableItem,
tableItemToBarcode
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment