monkey-front-core 0.0.450 → 0.0.451

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.
@@ -380,6 +380,20 @@ class MonkeyEcxUtils {
380
380
  });
381
381
  return handled;
382
382
  }
383
+ static trimValuesToSave(obj, fields) {
384
+ let ret = obj;
385
+ const grouped = fields.join('#');
386
+ Object.entries(obj).map(([key, value]) => {
387
+ if (grouped.includes(key)) {
388
+ ret = {
389
+ ...ret,
390
+ [key]: `${value}`.trim()
391
+ };
392
+ }
393
+ return null;
394
+ });
395
+ return ret;
396
+ }
383
397
  }
384
398
 
385
399
  const moment$6 = moment_;