Pārlūkot izejas kodu

docs: add destructuring syntax

Sven 1 gadu atpakaļ
vecāks
revīzija
2d5f0d5abd
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      README.md

+ 5 - 0
README.md

@@ -66,6 +66,11 @@ If you like using this library, please consider [supporting the development ❤
   Then, access the functions on the global variable `UserUtils`:
   ```ts
   UserUtils.addGlobalStyle("body { background-color: red; }");
+
+  // or using object destructuring:
+
+  const { clamp } = UserUtils;
+  console.log(clamp(1, 5, 10); // 5
   ```
 
 <br><br>