/collection-ops

library that makes collection operations in javascript more functional

Primary LanguageJavaScriptMIT LicenseMIT

What Is The CollectionOps Library

The CollectionOps library is a simple lightweight library that aims to make task of handling collections in javascript more functional. CollectionOps brings lazily evaluated operations that fit in with the core language as smoothly as possible. These operations also work on types other than just arrays! They work on any object type that implements the Iterable interface in JavaScript. This means that these operations work on Sets, Generators, and even custom iterables. Many of these operations are also applicable to infinite collections, such as a never-ending generator or custom Iterable.

Reasons to use CollectionOps in your project

CollectionOps is a highly performant and flexible solution that allows you to write clean, declarative, and functional JavScript code. Several common reasons that you may want to use FunctionalCollections includes:

  • Lazily evaluated collection operations
  • Robust operations to handle any type of collection
  • A declarative rather than imperative code style