@accitdg/web-helpers 0.0.17 → 0.0.18
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 +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -285,7 +285,7 @@ Converts a string to title case, capitalizing the first letter of each word and
|
|
|
285
285
|
|
|
286
286
|
**Example:**
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
```javascript
|
|
289
289
|
webHelpers.titleCase("hello world");
|
|
290
290
|
// Output: "Hello World"
|
|
291
291
|
|
|
@@ -300,6 +300,7 @@ webHelpers.titleCase("single");
|
|
|
300
300
|
|
|
301
301
|
webHelpers.titleCase(123);
|
|
302
302
|
// Output: 123 (returns original value if not a string)
|
|
303
|
+
```
|
|
303
304
|
|
|
304
305
|
### `maskFormatPhilippineNumber(number: string): string`
|
|
305
306
|
|
|
@@ -328,7 +329,7 @@ webHelpers.maskFormatPhilippineNumber("09171234");
|
|
|
328
329
|
|
|
329
330
|
webHelpers.maskFormatPhilippineNumber("(0917) 123-4567");
|
|
330
331
|
// Output: "+63 9171 2345 67"
|
|
331
|
-
|
|
332
|
+
```
|
|
332
333
|
|
|
333
334
|
## License
|
|
334
335
|
|