@trudb/tru-common-lib 0.0.415 → 0.0.417
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/lib/services/tru-util.mjs +4 -1
- package/fesm2015/trudb-tru-common-lib.mjs +3 -0
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +3 -0
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/lib/services/tru-util.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1873,6 +1873,9 @@ class TruUtil {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
return null;
|
|
1875
1875
|
};
|
|
1876
|
+
this.isNumeric = (n) => {
|
|
1877
|
+
return !isNaN(parseFloat(n)) && isFinite(n);
|
|
1878
|
+
};
|
|
1876
1879
|
this.isDate = (date) => {
|
|
1877
1880
|
if (Object.prototype.toString.call(date) === '[object Date]') {
|
|
1878
1881
|
if (isNaN(date.getTime())) {
|