← ClaudeAtlas

delon-utillisted

@delon/util skill - Utility functions library for array, string, date, number manipulation. For ng-events construction site progress tracking system.
aiskillstore/marketplace · ★ 329 · AI & Automation · score 79
Install: claude install-skill aiskillstore/marketplace
# @delon/util - Utility Functions Library Trigger patterns: "utility", "helper", "@delon/util", "format", "deepCopy", "deepMerge" ## Overview @delon/util provides a comprehensive collection of utility functions for common data manipulation tasks in ng-alain applications. **Package**: @delon/util@20.1.0 ## Categories ### 1. Array Utilities (`array/`) #### deepCopy - Deep Copy Arrays/Objects ```typescript import { deepCopy } from '@delon/util/array'; const original = { name: '任務', items: [1, 2, 3], meta: { id: 1 } }; const copy = deepCopy(original); // Changes to copy won't affect original copy.items.push(4); console.log(original.items); // [1, 2, 3] console.log(copy.items); // [1, 2, 3, 4] ``` **Use Cases**: - Clone state objects for immutability - Create independent copies before mutations - Deep cloning form data #### deepMerge - Deep Merge Objects ```typescript import { deepMerge } from '@delon/util/array'; const defaults = { config: { theme: 'light', size: 'default' }, features: ['dashboard'] }; const custom = { config: { theme: 'dark' }, features: ['reports'] }; const merged = deepMerge(defaults, custom); // Result: { // config: { theme: 'dark', size: 'default' }, // features: ['dashboard', 'reports'] // } ``` #### Other Array Functions ```typescript import { groupBy, // Group array by property uniq, // Remove duplicates uniqBy, // Remove duplicates by property orderBy // Sort array by properties } from '@del