moderndash 0.10.1 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,6 +14,16 @@
|
|
|
14
14
|
✅ TS Decorators
|
|
15
15
|
✅ ESNext
|
|
16
16
|
</div>
|
|
17
|
+
<p></p>
|
|
18
|
+
|
|
19
|
+
<div align=center>
|
|
20
|
+
<a href="https://www.npmjs.com/package/moderndash">
|
|
21
|
+
<img alt="npm" src="https://img.shields.io/npm/dw/moderndash?label=Downloads">
|
|
22
|
+
</a>
|
|
23
|
+
<a href="https://github.com/Maggi64/moderndash/blob/main/LICENSE">
|
|
24
|
+
<img alt="GitHub" src="https://img.shields.io/github/license/maggi64/moderndash">
|
|
25
|
+
</a>
|
|
26
|
+
</div>
|
|
17
27
|
|
|
18
28
|
<h3 align=center>
|
|
19
29
|
<a href="https://moderndash.io" target="_blank">
|
|
@@ -23,18 +33,19 @@
|
|
|
23
33
|
|
|
24
34
|
---
|
|
25
35
|
|
|
26
|
-
> **Warning**
|
|
27
|
-
> This library is still in beta.
|
|
28
|
-
|
|
29
36
|
## 🔖 Introduction
|
|
30
|
-
|
|
31
|
-
ModernDash provides powerful functions while encouraging you to use native JS where its appropriate.
|
|
37
|
+
ModernDash is a modern and lightweight alternative to utility libraries like Lodash. It provides important functions while encouraging use of native JS where possible.
|
|
32
38
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
ModernDash ignores trivial functions and focuses of the functions you actually need.
|
|
40
|
+
```typescript
|
|
41
|
+
// We don't need
|
|
42
|
+
ModernDash.isArray(arr)
|
|
43
|
+
Lodash.compact(arr)
|
|
36
44
|
|
|
37
|
-
|
|
45
|
+
// When we these native replacements
|
|
46
|
+
Array.isArray(arr)
|
|
47
|
+
arr.filter(Boolean)
|
|
48
|
+
```
|
|
38
49
|
## 💾 Installation
|
|
39
50
|
|
|
40
51
|
```bash
|
package/package.json
CHANGED