lolite.divide 1.1.8 → 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 +4 -7
- package/package.json +11 -15
- /package/{index.js → src/lib/divide.js} +0 -0
package/README.md
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
### divide(dividend, divisor)
|
|
1
|
+
## divide(dividend, divisor)
|
|
4
2
|
Calculates the quotient of two values.
|
|
5
3
|
Non-finite or non-numeric values are coerced to zero. Division by positive zero returns infinity, and divison by negative zero returns negative infinity. If you divide zero by zero it returns NaN.
|
|
6
4
|
|
|
7
5
|
```javascript
|
|
8
|
-
const
|
|
6
|
+
const lolite = require("lolite.divide")
|
|
9
7
|
const quotient = divide(20, 5)
|
|
10
8
|
// quotient: 4
|
|
11
9
|
|
|
@@ -14,6 +12,5 @@ const divisonByZero = divide(10, 0)
|
|
|
14
12
|
|
|
15
13
|
const coercedDivide = divide("garbage", Infinity)
|
|
16
14
|
// result: NaN (0 / 0)
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
This utility is part of the [LoLite](https://github.com/enterprise-npm-ai/lolite) utility suite.
|
|
15
|
+
```
|
|
16
|
+
|
package/package.json
CHANGED
|
@@ -1,29 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lolite.divide",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"author": "10x'ly Made Software Ventures AB",
|
|
3
|
+
"version": "1.1.10",
|
|
4
|
+
"main": "src/lib/divide.js",
|
|
7
5
|
"license": "EGPSL10X-1.0",
|
|
6
|
+
"author": "10x'ly Made Software Ventures AB",
|
|
8
7
|
"repository": {
|
|
9
8
|
"type": "git",
|
|
10
9
|
"url": "git+https://github.com/enterprise-npm-ai/lolite.git"
|
|
11
10
|
},
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/enterprise-npm-ai/lolite/issues"
|
|
14
|
-
},
|
|
15
|
-
"homepage": "https://github.com/enterprise-npm-ai/lolite#readme",
|
|
16
11
|
"dependencies": {
|
|
17
|
-
"@10xly/strict-equals": "^1.0.0",
|
|
18
12
|
"@positive-numbers/zero": "^3.0.0",
|
|
19
|
-
"array-includes": "^3.1.9",
|
|
20
|
-
"const": "^1.0.0",
|
|
21
13
|
"false-value": "^2.0.6",
|
|
22
|
-
"
|
|
23
|
-
"is-
|
|
14
|
+
"@10xly/strict-equals": "^1.0.0",
|
|
15
|
+
"@is-(unknown)/is-finite": "^1.0.0",
|
|
24
16
|
"iszero": "^1.0.0",
|
|
25
|
-
"
|
|
17
|
+
"is-negative-zero": "^2.0.3",
|
|
26
18
|
"nan-is-a-function": "^67.67.67",
|
|
27
|
-
"
|
|
19
|
+
"array-includes": "^3.1.9",
|
|
20
|
+
"object.values": "^1.2.1",
|
|
21
|
+
"map-values": "^1.0.1",
|
|
22
|
+
"const": "^1.0.0",
|
|
23
|
+
"infinities": "^1.0.1"
|
|
28
24
|
}
|
|
29
25
|
}
|
|
File without changes
|