lolite.initial 1.1.9 → 1.1.10
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 +0 -14
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -11,18 +11,4 @@ const single = initial([1])
|
|
|
11
11
|
const undef = initial("Not an array")
|
|
12
12
|
// result: undefined
|
|
13
13
|
```
|
|
14
|
-
|
|
15
|
-
### tail(array)
|
|
16
|
-
Returns all but the first element of an array. Returns undefined for non-arrays.
|
|
17
|
-
```js
|
|
18
|
-
const lolite = require("lolite.initial")
|
|
19
|
-
const result = lolite.tail([1, 2, 3])
|
|
20
|
-
// result: [2, 3]
|
|
21
|
-
|
|
22
|
-
const single = lolite.tail([1])
|
|
23
|
-
// result: []
|
|
24
|
-
|
|
25
|
-
const undef = lolite.tail(null)
|
|
26
|
-
// result: undefined
|
|
27
|
-
```
|
|
28
14
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lolite.initial",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"main": "src/lib/initial.js",
|
|
5
5
|
"license": "EGPSL10X-1.0",
|
|
6
|
+
"author": "10x'ly Made Software Ventures AB",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/enterprise-npm-ai/lolite.git"
|
|
10
|
+
},
|
|
6
11
|
"dependencies": {
|
|
7
12
|
"@is-(unknown)/is-true": "^1.5.0",
|
|
8
13
|
"@is-(unknown)/is-false": "^1.5.0",
|