Blazing Fast ⚡
Optimized for performance. xdash delivers speed without compromising on features. Get your results, faster.
Fast, Tiny, Creative & Functional. Built for modern development with effortless Tree Shaking.
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 ]
Explore the Getting Started guide or jump straight into the API Reference.