Skip to content

xdashThe Lean & Mighty TypeScript Utility Library

Fast, Tiny, Creative & Functional. Built for modern development with effortless Tree Shaking.

xdash banner

Simple Example

typescript
import { capitalize, compact } from 'xdash';

// Capitalize a string
console.log(capitalize('hello xdash!')); // Output: Hello xdash!

// Remove falsy values from an array
const mixedArray = [0, 1, false, 2, '', 3, null, undefined, 4];
console.log(compact(mixedArray)); // Output: [ 1, 2, 3, 4 ]

Ready to dive in?

Explore the Getting Started guide or jump straight into the API Reference.

Released under the MIT License.