{"library":"moderndash","title":"ModernDash","description":"ModernDash is a TypeScript-first utility library designed as a performant and lightweight alternative to Lodash, optimized for modern browsers and enhanced developer experience. Currently stable at version 4.0.2, it follows a release cadence driven by feature additions, bug fixes, and security patches, with major versions tied to breaking changes like Node.js version bumps. Key differentiators include its strict TypeScript adherence (no `any` types), ESM-only distribution, tree-shakable design, and a strong focus on outperforming Lodash in most benchmarks while maintaining zero runtime dependencies. It selectively implements only essential utility functions, encouraging the use of native JavaScript alternatives where available, contrasting with Lodash's more comprehensive API surface.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install moderndash"],"cli":null},"imports":["import { chunk } from 'moderndash'","import { camelCase } from 'moderndash'","import { merge } from 'moderndash'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { chunk, camelCase, merge } from 'moderndash';\n\nconsole.log('--- moderndash Quickstart ---');\n\n// Example 1: Chunk an array into smaller arrays\nconst myArray = [1, 2, 3, 4, 5, 6, 7];\nconst chunkedArray = chunk(myArray, 3);\nconsole.log('Chunked array:', chunkedArray);\n// Expected: [[1, 2, 3], [4, 5, 6], [7]]\n\n// Example 2: Convert a string to camel case\nconst myString = 'hello world moderndash example';\nconst camelCasedString = camelCase(myString);\nconsole.log('Camel cased string:', camelCasedString);\n// Expected: \"helloWorldModerndashExample\"\n\n// Example 3: Deep merge objects\nconst object1 = { 'a': [{ 'b': 2 }, { 'd': 4 }] };\nconst object2 = { 'a': [{ 'c': 3 }, { 'e': 5 }] };\nconst mergedObject = merge(object1, object2);\nconsole.log('Merged object:', JSON.stringify(mergedObject, null, 2));\n/* Expected (keys merged by index in arrays):\n{\n  \"a\": [\n    { \"b\": 2, \"c\": 3 },\n    { \"d\": 4, \"e\": 5 }\n  ]\n}*/","lang":"typescript","description":"This quickstart demonstrates how to install ModernDash and use fundamental utility functions like `chunk`, `camelCase`, and `merge` in a TypeScript environment.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}