0.1.11 • Published 8 months ago

@tetarchus/utils v0.1.11

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

@tetarchus/utils

A collection of type-aware utility functions to share between projects (and possibly assist others).

I use Typescript quite heavily, and whilst the built-in types for functions are often useful, they can at times be lacking.

I found myself creating or borrowing utility functions that maintain strict typings, and then copying them between projects, so I've bundled them up to prevent having to copy them around my projects, and perhaps you'll find them helpful too!

These functions may be improved/updated over time so that I don't have to take learnings from one project and back-fill them as well.

Install

npm i @tetarchus/utils

Usage

import {filterFalsy} from '@tetarchus/utils/core';

const array.filter(filterFalsy);

Included Functions

Array

  • arrayIncludes - A more type-aware version of Array.prototype.includes()
0.1.11

8 months ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago