3.2.4 • Published 13 days ago

typedash v3.2.4

Weekly downloads
64
License
MIT
Repository
github
Last release
13 days ago

typedash

A modern collection of utility functions for all occasions, all written in TypeScript and type-safe.

Similar to lodash but with a focus on simplicity and type-safety (no excessive checks are made, trust the compiler), tree-shaking, and leveraging the platform whenever possible.

Features

  • 📦 Modern and tree-shakeable
  • 🔥 Written in and designed to work with TypeScript (plain JavaScript also supported)
  • 🚫 No runtime dependencies
  • 🌱 Growing collection of 55+ type-safe utility functions

Installation

npm install typedash
# or using yarn
yarn add typedash

Usage

typedash provides utility functions that can be imported and used in your TypeScript projects. Here’s an example of how to import and use the pick function:

import { objectKeys } from 'typedash';
import { pick } from 'typedash/pick'; // either syntax works

const obj = {
  a: 1,
  b: 2,
  c: 3,
};

const result = objectKeys(obj); // ["a", "b", "c"]
//     ^? ("a" | "b" | "c")[]

const result2 = pick(obj, ['a', 'b']); // { a: 1, b: 2 }
//     ^? { a: number, b: number }

License

typedash is MIT licensed.

3.2.4

13 days ago

3.2.3

13 days ago

3.2.2

2 months ago

3.2.1

5 months ago

3.0.4

11 months ago

3.0.3

11 months ago

3.2.0

7 months ago

3.1.1

7 months ago

3.0.2

11 months ago

3.1.0

9 months ago

3.0.5

11 months ago

3.0.1

11 months ago

3.0.0

11 months ago

2.2.0

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago