Introduction
Semantic UI includes this standalone library to avoid external dependencies and to allow for performant and opinionated uses of common utils like clone
and isEqual
as well as some particular use cases for web components.
Installation
The utils library is a standalone package that can be used without any other dependencies.
Usage
Utilities can be used by importing them in your project.
Utility Categories
The Utils library is organized into several categories:
- Arrays: Utilities for working with arrays.
- Browser: Utilities for handling functionality on the client.
- Cloning: Deep cloning utilities.
- Crypto: Cryptographic helpers like hashing functions.
- Dates: Helpers for handling date formats.
- Equality: Helpers for comparing equality.
- Errors: Error handling and creation utilities.
- Equality: Deep equality comparison functions.
- Functions: Helpers for manipulating functions.
- Looping: Iteration utilities for arrays and objects.
- Numbers: Helpers for manipulating numbers
- Types: Functions for checking and manipulating data types.
- Objects: Helpers for object manipulation and traversal.
- Regular Expressions: Helpers for working with regular expressions.
- SSR: Helpers for server-side rendering scenarios.
- Strings: String formatting and manipulation functions.