forked from CodecoolArchive/mastering-git-workshop-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsortBy.js
More file actions
24 lines (17 loc) · 717 Bytes
/
sortBy.js
File metadata and controls
24 lines (17 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Usage: node sortBy.js <score|abv>
// Example: node sortBy.js score
// Feature 1: sort by abv (do it on different branch than Feature 2)
// Print a list of beer with the following format
// `${name} (score: ${score}, abv: ${abv})`
// If the given param is "abv" sort the beers in ascending
// order of their abv value.
// Feature 2: sort by score (do it on different branch than Feature 1)
// Print a list of beer with the following format
// `${name} (score: ${score}, abv: ${abv})`
// If the given param is "score" sort the beers in ascending
// order of their score value.
const getBeers = require('./data')
function main(property) {
console.log('property:', property)
}
main(process.argv[2])