support-collection

0.1.0-dev.3 • Public • Published

collect-js

Javascript Port of Laravel's Collection Class

Available Methods

✅ means implemented

  • ✅ all
  • ✅ avg
  • chunk
  • collapse
  • combine
  • contains
  • ✅ count
  • diff
  • diffKeys
  • ✅ each
  • every
  • except
  • ✅ filter
  • ✅ first
  • flatMap
  • flatten
  • flip
  • forget
  • forPage
  • ✅ get
  • groupBy
  • ✅ has
  • implode
  • intersect
  • ✅ isEmpty
  • keyBy
  • ✅ keys
  • last
  • ✅ map
  • mapWithKeys
  • max
  • merge
  • min
  • nth
  • only
  • partition
  • pipe
  • pluck
  • pop
  • prepend
  • pull
  • ✅ push
  • ✅ put
  • random
  • ✅ reduce
  • ✅ reject
  • reverse
  • search
  • shift
  • shuffle
  • slice
  • sort
  • sortBy
  • sortByDesc
  • splice
  • split
  • ✅ sum
  • take
  • ✅ toArray
  • toJson
  • transform
  • union
  • unique
  • values
  • where
  • whereStrict
  • whereIn
  • whereInStrict
  • zip

Package Sidebar

Install

npm i support-collection

Weekly Downloads

1

Version

0.1.0-dev.3

License

none

Last publish

Collaborators

  • josephl