ingeni-validation 1.1.20 → 1.2.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/ingeni-validation.js +0 -11
- package/package.json +1 -1
package/ingeni-validation.js
CHANGED
|
@@ -334,17 +334,6 @@ async function isValidDate(value, format) {
|
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
|
|
337
|
-
//Validate Gender
|
|
338
|
-
|
|
339
|
-
async function isValidPrice(price){
|
|
340
|
-
if (price === null || price === undefined) return false;
|
|
341
|
-
if (typeof price === "boolean") return false;
|
|
342
|
-
if (typeof price === "string" && price.trim().length === 0) return false;
|
|
343
|
-
if (isNaN(price)) return false;
|
|
344
|
-
if (Number(price) <= 0) return false;
|
|
345
|
-
return true;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
337
|
|
|
349
338
|
//Validate Gender
|
|
350
339
|
|