Skip to content

Instantly share code, notes, and snippets.

@kepop1
Last active February 27, 2020 15:04
Show Gist options
  • Save kepop1/d6d869d151b9bed2ed2c348f50207cd9 to your computer and use it in GitHub Desktop.
Save kepop1/d6d869d151b9bed2ed2c348f50207cd9 to your computer and use it in GitHub Desktop.
Behind the Buzzword - Lodash/FP - Kata Instructions

Lodash/FP - Behind the Buzzword Kata 🐝

After that short 5 minute micro-talk covering Lodash/FP, I'm sure that everyone's definitely an expert! However there's a couple of challenges that we can do to see this in action! πŸ€”

We've got ~15 minutes for this so that's plenty of time to have a beer and have a go at using lodash. πŸš€


Challenge 1 🍺

You have a dataset that consists of a mixture of accounts for a user, this is similar to what we might face at WonderBill with our timeline ;).

We want to return the most expensive bill for a user from data that's returned from the api. You have a function called getMostExpensiveBill(accounts), this will need fixing and should give you a little taste of using lodash at the very least.

Link to Challenge πŸ‘‡

Look inside exercise_one.js https://stackblitz.com/edit/lodashfp-ex-1?file=exercise_one.js


Challenge 2 🍻

We've just created our function that returns the most expensive bill, now lets try and get back a collection using some more intricate lodash.

You have a function called getTotalBillAmountByMonth(accounts), this will need implementing and will give you a taste of some gnarly lodash.

Link to Challenge πŸ‘‡

Look inside exercise_two.js https://stackblitz.com/edit/lodashfp-ex-2?file=exercise_two.js


Useful Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment