src/projects/GroceriStar/groceristar.js
function () {
  const departments = []

  // @TODO this is an example what should be updated. loooooks so bad and unreadable
  _.forEach(_.range(0, groceries.length), value =>
    departments.push(..._.map(groceries[value]['departments']))
  )
  return departments
}
function () {
  const departments = []

  // @TODO this is an example what should be updated. loooooks so bad and unreadable
  _.forEach(_.range(0, groceries.length), value =>
    departments.push(..._.map(groceries[value]['departments']))
  )
  return departments
}
function ( ) { const departments = [ ] // @TODO this is an example what should be updated. loooooks so bad and unreadable _ . forEach ( _ . range ( 0 , groceries . length ) , value => departments . push ( ... _ . map ( groceries [ value ] [ 'departments' ] ) ) ) return departments }
i assume this cannot work, because we don't have groceries variable... @TODO
i assume this cannot work because we don t have groceries variable ...