@stemy/ngx-utils 13.1.1 → 13.1.2
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/esm2020/ngx-utils/utils/string.utils.mjs +4 -1
- package/fesm2015/stemy-ngx-utils.mjs +3 -0
- package/fesm2015/stemy-ngx-utils.mjs.map +1 -1
- package/fesm2020/stemy-ngx-utils.mjs +3 -0
- package/fesm2020/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/utils/string.utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1754,6 +1754,9 @@ class StringUtils {
|
|
|
1754
1754
|
static ucFirst(str) {
|
|
1755
1755
|
return str ? str.charAt(0).toUpperCase() + str.substring(1) : "";
|
|
1756
1756
|
}
|
|
1757
|
+
static isObjectId(id) {
|
|
1758
|
+
return typeof id === "string" && id.length == 12 && !isNaN(Number("0x" + id));
|
|
1759
|
+
}
|
|
1757
1760
|
static parseDomain(baseUrl) {
|
|
1758
1761
|
try {
|
|
1759
1762
|
const url = new URL(baseUrl);
|