lolite.flatten 1.1.6 → 1.1.8
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 +4 -2
- package/package.json +12 -4
package/README.md
CHANGED
|
@@ -4,9 +4,11 @@
|
|
|
4
4
|
Flattens arrays. Returns undefined for non-arrays.
|
|
5
5
|
|
|
6
6
|
```javascript
|
|
7
|
-
const
|
|
7
|
+
const flatten = require("lolite.flatten")
|
|
8
8
|
const flat = flatten([1, [2, [3]]])
|
|
9
9
|
// flat: [1, 2, 3]
|
|
10
10
|
const undef = flatten("Not an array")
|
|
11
11
|
// undef: undefined
|
|
12
|
-
```
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
This utility is part of the [LoLite](https://github.com/enterprise-npm-ai/lolite) utility suite.
|
package/package.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lolite.flatten",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
|
+
"description": "Enterprise-grade flatten utility from the LoLite suite",
|
|
4
5
|
"main": "index.js",
|
|
6
|
+
"author": "10x'ly Made Software Ventures AB",
|
|
7
|
+
"license": "EGPSL10X-1.0",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/enterprise-npm-ai/lolite.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/enterprise-npm-ai/lolite/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/enterprise-npm-ai/lolite#readme",
|
|
5
16
|
"dependencies": {
|
|
6
17
|
"false-value": "^2.0.6",
|
|
7
18
|
"true-value": "^2.0.5",
|
|
8
|
-
"@is-(unknown)/is-false": "^1.5.0",
|
|
9
|
-
"@is-(unknown)/is-true": "^1.5.0",
|
|
10
19
|
"array-filter": "^1.0.0",
|
|
11
|
-
"@is-(unknown)/is-array": "^1.0.0",
|
|
12
20
|
"@10xly/strict-equals": "^1.0.0",
|
|
13
21
|
"@not-js/not": "^1.1.0",
|
|
14
22
|
"@positive-numbers/one": "^3.0.0",
|