UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

16 lines (11 loc) 764 B
## 🚀 New Features to TinyHtml * **`toBoolean`**: Safely retrieves the boolean content of an element. Returns `true`, `false`, or `null` if empty. * **`setBoolean`**: Sets a boolean value (`true` or `false`) into an element, ensuring consistent representation. ## ⚠️ Important Notice > **ATTENTION:** > The methods **`toString`** and **`setString`** now take over the **previous behavior** of `text` and `setText`. > > * `toString` / `setString` → work strictly with **string values**. > * `text` / `setText` → now accept **any type of value**, not only strings. This change ensures clearer semantics and greater flexibility when handling mixed-type data. **Full Changelog**: https://github.com/JasminDreasond/Tiny-Essentials/compare/1.21.6...1.21.7