Skip to content

EroyEroy/utilities-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

utilities-library

A TypeScript utility library with small, typed and tested helper functions for everyday development.

Development in progress. The package is not published yet.

Status

This project is currently in active development.

The first completed category is:

  • array

More categories will be added gradually:

  • guards
  • string
  • object
  • number
  • async
  • function
  • url
  • format
  • date
  • validation

Features

  • Written in TypeScript
  • Runtime-tested with Vitest
  • Strict TypeScript configuration
  • Small focused utility functions
  • One function per folder
  • No React dependency
  • No runtime dependencies

Current array utilities

  • arrayIncludes
  • averageBy
  • chunkArray
  • compactArray
  • countBy
  • dropArray
  • findArrayItemByKey
  • firstArrayItem
  • flattenArray
  • groupBy
  • hasArrayItemByKey
  • insertArrayItem
  • isArray
  • isEmptyArray
  • isFilledArray
  • lastArrayItem
  • mapArrayToRecord
  • maxBy
  • minBy
  • moveArrayItem
  • partitionArray
  • rangeArray
  • replaceArrayItem
  • replaceArrayItemByKey
  • removeArrayItem
  • removeArrayItemByKey
  • shuffleArray
  • sortBy
  • sumBy
  • takeArray
  • toggleArrayItem
  • uniqueArray
  • uniqueBy
  • updateArrayItemByKey

Installation

The package is not published yet.

After release, it will be available through npm.

pnpm add package-name

Releases

No releases published

Packages

 
 
 

Contributors