@sankhyalabs/core-docs 5.3.0 → 5.4.0
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/classes/ArrayUtils.md +3 -3
- package/classes/NumberUtils.md +26 -0
- package/package.json +1 -1
package/classes/ArrayUtils.md
CHANGED
@@ -47,7 +47,7 @@ Filtra um array a partir de um critério textual.
|
|
47
47
|
|
48
48
|
#### Defined in
|
49
49
|
|
50
|
-
src/utils/ArrayUtils.ts:
|
50
|
+
src/utils/ArrayUtils.ts:17
|
51
51
|
|
52
52
|
___
|
53
53
|
|
@@ -71,7 +71,7 @@ Converte texto para caixa alta e substitui caracteres acentuados.
|
|
71
71
|
|
72
72
|
#### Defined in
|
73
73
|
|
74
|
-
src/utils/ArrayUtils.ts:
|
74
|
+
src/utils/ArrayUtils.ts:35
|
75
75
|
|
76
76
|
___
|
77
77
|
|
@@ -96,4 +96,4 @@ Ordena valores de um array alfabeticamente.
|
|
96
96
|
|
97
97
|
#### Defined in
|
98
98
|
|
99
|
-
src/utils/ArrayUtils.ts:
|
99
|
+
src/utils/ArrayUtils.ts:45
|
package/classes/NumberUtils.md
CHANGED
@@ -13,6 +13,7 @@
|
|
13
13
|
### Methods
|
14
14
|
|
15
15
|
- [changeFormat](NumberUtils.md#changeformat)
|
16
|
+
- [compare](NumberUtils.md#compare)
|
16
17
|
- [format](NumberUtils.md#format)
|
17
18
|
- [getValueOrDefault](NumberUtils.md#getvalueordefault)
|
18
19
|
- [getValueOrZero](NumberUtils.md#getvalueorzero)
|
@@ -64,6 +65,31 @@ src/utils/NumberUtils.ts:168
|
|
64
65
|
|
65
66
|
___
|
66
67
|
|
68
|
+
### compare
|
69
|
+
|
70
|
+
▸ `Static` **compare**(`a`, `b`): `number`
|
71
|
+
|
72
|
+
Determina a ordem de umeros.
|
73
|
+
|
74
|
+
#### Parameters
|
75
|
+
|
76
|
+
| Name | Type | Description |
|
77
|
+
| :------ | :------ | :------ |
|
78
|
+
| `a` | `number` | Primeio número para comparação. |
|
79
|
+
| `b` | `number` | Segundo número para comparação. |
|
80
|
+
|
81
|
+
#### Returns
|
82
|
+
|
83
|
+
`number`
|
84
|
+
|
85
|
+
- Um numeral negativo se o primeiro argumento é menor que o segundo, zero se os dois são iguais e um numeral positivo quando o primeiro é maior que o segundo.
|
86
|
+
|
87
|
+
#### Defined in
|
88
|
+
|
89
|
+
src/utils/NumberUtils.ts:249
|
90
|
+
|
91
|
+
___
|
92
|
+
|
67
93
|
### format
|
68
94
|
|
69
95
|
▸ `Static` **format**(`value`, `precision`, `prettyPrecision?`): `string`
|