1.1.0 • Published 4 months ago

@fkm/array v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@fkm/array

Generic handlers for array functions.

Usage

  • npm install --save-dev @fkm/array
  • import { isDefined } from '@fkm/array'
  • [1, 2, , 4].filter(isDefined) returns 1, 2, 4

Handlers

Filters

  • isDefined
  • isNotEmptyString
  • keepUniqueValues
  • keepUniqueDates

Reducers

  • concatArrays
  • concatNestedArrays
  • mergeObjects
  • sumNumbers

Sorters

  • ascendingDates

License

Copyright 2020 Florian Mäder - Permission granted under the MIT license.

1.1.0

4 months ago

1.0.0

4 years ago