moderndash 0.0.15 → 0.0.17
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 +16 -75
- package/dist/index.cjs +704 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +815 -0
- package/dist/index.js +631 -0
- package/dist/index.js.map +1 -0
- package/package.json +6 -5
- package/src/array/chunk.ts +0 -31
- package/src/array/difference.ts +0 -21
- package/src/array/differenceBy.ts +0 -30
- package/src/array/differenceWith.ts +0 -31
- package/src/array/dropRightWhile.ts +0 -28
- package/src/array/dropWhile.ts +0 -24
- package/src/array/index.ts +0 -21
- package/src/array/intersection.ts +0 -20
- package/src/array/intersectionBy.ts +0 -26
- package/src/array/intersectionWith.ts +0 -33
- package/src/array/sample.ts +0 -18
- package/src/array/sampleSize.ts +0 -31
- package/src/array/shuffle.ts +0 -33
- package/src/array/takeRightWhile.ts +0 -33
- package/src/array/takeWhile.ts +0 -33
- package/src/array/uniq.ts +0 -18
- package/src/array/uniqBy.ts +0 -25
- package/src/array/uniqWith.ts +0 -20
- package/src/array/unzip.ts +0 -20
- package/src/array/unzipWith.ts +0 -26
- package/src/array/zip.ts +0 -17
- package/src/array/zipWith.ts +0 -28
- package/src/collection/countBy.ts +0 -38
- package/src/collection/groupBy.ts +0 -32
- package/src/collection/index.ts +0 -3
- package/src/collection/sortBy.ts +0 -15
- package/src/function/after.ts +0 -29
- package/src/function/before.ts +0 -31
- package/src/function/debounce.ts +0 -125
- package/src/function/index.ts +0 -7
- package/src/function/memoize.ts +0 -63
- package/src/function/once.ts +0 -22
- package/src/function/throttle.ts +0 -13
- package/src/function/times.ts +0 -24
- package/src/helpers/collections.ts +0 -5
- package/src/helpers/shortHands.ts +0 -17
- package/src/helpers/stringModifiers.ts +0 -18
- package/src/helpers/typeofChecks.ts +0 -3
- package/src/index.ts +0 -7
- package/src/lang/index.ts +0 -4
- package/src/lang/isEmpty.ts +0 -51
- package/src/lang/isEqual.ts +0 -80
- package/src/lang/isEqualWith.ts +0 -34
- package/src/lang/isPlainObject.ts +0 -3
- package/src/object/index.ts +0 -1
- package/src/object/pick.ts +0 -21
- package/src/string/camelCase.ts +0 -30
- package/src/string/capitalize.ts +0 -14
- package/src/string/deburr.ts +0 -20
- package/src/string/escape.ts +0 -21
- package/src/string/escapeRegExp.ts +0 -15
- package/src/string/index.ts +0 -11
- package/src/string/kebabCase.ts +0 -25
- package/src/string/pascalCase.ts +0 -26
- package/src/string/snakeCase.ts +0 -30
- package/src/string/startCase.ts +0 -25
- package/src/string/stripSpecialChars.ts +0 -17
- package/src/string/unescape.ts +0 -22
- package/src/types.ts +0 -15
package/README.md
CHANGED
|
@@ -2,92 +2,33 @@
|
|
|
2
2
|
|
|
3
3
|
<p align=center>
|
|
4
4
|
A Typescript-First utility library inspired by Lodash.
|
|
5
|
-
Optimized for modern browsers.
|
|
5
|
+
Optimized for modern browsers, typescript & developer experience.
|
|
6
6
|
</p>
|
|
7
7
|
<p align=center>
|
|
8
8
|
✅ ESM
|
|
9
9
|
✅ Tree-shakable
|
|
10
10
|
✅ Typescript Strict Mode (no any types)
|
|
11
11
|
✅ Zero dependencies
|
|
12
|
+
✅ Hoverable Docs
|
|
12
13
|
</p>
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
<h2 align=center>
|
|
16
|
+
<a href="https://moderndash.io" target="_blank">
|
|
17
|
+
📓 Documentation
|
|
18
|
+
</a>
|
|
19
|
+
</h2>
|
|
20
|
+
|
|
21
|
+
---
|
|
15
22
|
|
|
16
23
|
> **Warning**
|
|
17
24
|
> This library is still in development and is not ready for production use.
|
|
18
25
|
|
|
19
|
-
##
|
|
20
|
-
The documentation is WIP.
|
|
21
|
-
[Documentation](https://moderndash.io/)
|
|
22
|
-
|
|
23
|
-
## Removed Functions because of trivial native alternatives
|
|
24
|
-
Look at [You-Dont-Need-Lodash](https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore) for native replacements.
|
|
25
|
-
|
|
26
|
-
### Array Functions
|
|
27
|
-
- compact
|
|
28
|
-
- concat
|
|
29
|
-
- differenceBy property shorthand
|
|
30
|
-
- drop
|
|
31
|
-
- dropRight
|
|
32
|
-
- fill
|
|
33
|
-
- findIndex
|
|
34
|
-
- findLastIndex
|
|
35
|
-
- first/head
|
|
36
|
-
- flatten
|
|
37
|
-
- flattenDeep
|
|
38
|
-
- flattenDepth
|
|
39
|
-
- fromPairs
|
|
40
|
-
- initial
|
|
41
|
-
- join
|
|
42
|
-
- last
|
|
43
|
-
- lastIndexOf
|
|
44
|
-
- nth
|
|
45
|
-
- without
|
|
46
|
-
- reverse
|
|
47
|
-
- slice
|
|
48
|
-
- sortedIndexOf
|
|
49
|
-
- tail
|
|
50
|
-
- take
|
|
51
|
-
- takeRight
|
|
52
|
-
- without
|
|
53
|
-
|
|
54
|
-
### Collection Functions
|
|
55
|
-
- each/forEach
|
|
56
|
-
- every
|
|
57
|
-
- filter
|
|
58
|
-
- find
|
|
59
|
-
- flatMap
|
|
60
|
-
- includes
|
|
61
|
-
|
|
62
|
-
### String Functions
|
|
63
|
-
- lowerCase
|
|
64
|
-
- trim
|
|
65
|
-
- trimEnd
|
|
66
|
-
- trimStart
|
|
67
|
-
- pad
|
|
68
|
-
- padEnd
|
|
69
|
-
- padStart
|
|
70
|
-
|
|
71
|
-
Functions are not considered trivial if they:
|
|
72
|
-
- include reduce methods
|
|
73
|
-
- include multiple nested function calls
|
|
74
|
-
|
|
75
|
-
## TODO
|
|
76
|
-
- More unzip tests
|
|
77
|
-
- Check if flatmapdeep, flatmapDepth is included in native flatmap
|
|
78
|
-
- GroupBy Property Shorthand
|
|
26
|
+
## Installation
|
|
79
27
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
- sorted functions (sortedIndex, sortedIndexBy, sortedIndexOf, sortedLastIndex, sortedLastIndexBy, sortedLastIndexOf, sortedUniq, sortedUniqBy)
|
|
84
|
-
- if performance is better than native alternatives (testing needed)
|
|
85
|
-
- xor functions (xor, xorBy, xorWith)
|
|
86
|
-
- zipObject, zipObjectDeep
|
|
87
|
-
- forEachRight
|
|
88
|
-
- findLast
|
|
89
|
-
- lowerFirst
|
|
90
|
-
- keyBy
|
|
28
|
+
```bash
|
|
29
|
+
npm install moderndash
|
|
30
|
+
```
|
|
91
31
|
|
|
92
|
-
##
|
|
93
|
-
-
|
|
32
|
+
## Why is X lodash function not included?
|
|
33
|
+
Please check [You-Dont-Need-Lodash](https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore) for native replacements.
|
|
34
|
+
If you still think a function is missing please open an issue.
|