@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.
@@ -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);