github samber/lo v1.0.0

latest releases: v1.47.0, v1.46.0, v1.45.0...
2 years ago

Initial release

Supported helpers for slices:

  • Filter
  • Map
  • Reduce
  • ForEach
  • Uniq
  • UniqBy
  • GroupBy
  • Chunk
  • Flatten
  • Shuffle
  • Reverse
  • Fill
  • ToMap

Supported helpers for maps:

  • Keys
  • Values
  • Entries
  • FromEntries
  • Assign (maps merge)

Supported intersection helpers:

  • Contains
  • Every
  • Some
  • Intersect
  • Difference

Supported search helpers:

  • IndexOf
  • LastIndexOf
  • Find
  • Min
  • Max
  • Last
  • Nth

Other functional programming helpers:

  • Ternary (1 line if/else statement)
  • If / ElseIf / Else
  • Switch / Case / Default
  • ToPtr
  • ToSlicePtr

Constraints:

  • Clonable
  • Ordered

Don't miss a new lo release

NewReleases is sending notifications on new releases.