basic JS solution
Code
# Code
```javascript []
/**
 * @param {number[]} nums
 * @return {number}
 */
let minElement = (a) => {
  return Math
  .min(...a
  .map(i => {
    return [...`${i}`]
    .reduce((q, w) => eval(q) + eval(w), 0);
  }));
};
```
['JavaScript']