utilityjs
Ultra-lightweight JavaScript utility functions for DOM manipulation, string operations, and array enhancements.
View FeaturesCore Features
DOM Selector Utilities
Simple one-liners for common DOM operations like element creation, attribute manipulation, and event binding.
createElement('div', { class: 'container' }, 'Hello World')
Array Helpers
Extended array methods for filtering, mapping, and sorting with chainable syntax.
array.unique().sort().reverse()
String Formatting
Advanced string manipulation including template literals, slug generation, and case conversion.
string.toTitleCase(), string.toSlug()
Type Guards
Robust type-checking functions for validating data types and structures.
isObject(val), isArray(val), isNumber(val)
Why Use utilityjs?
Utilityjs eliminates the need for multiple small dependency libraries by providing a single, tree-shakable solution for common programming patterns.
Get Started