Skip to content

v2.1.0

Compare
Choose a tag to compare
@dhershman1 dhershman1 released this 28 Jan 21:13
· 61 commits to master since this release
268a9df

💅 New

  • Added new takeLast function
    • Which takes from the end of an array instead of the beginning
  • Added new dropLast function
    • Returns a list containing all but the last n elements of the given list
  • Added new pick function
    • Picks only the requested keys from a provided object

🎊 Enhanced

  • Updated types for pathOr so that it can be specified if needed (still defaults to any)

🔧 Fixed

  • Updated drop to use Math.max when deciding a starting index
    • This shouldn't affect the output of drop which is why its not a breaking change
    • It does however allow usage in other functions to work as expected

Chore

  • Updated Dependencies