text: function deleteDigit(n) {
    const str = String(n).split('');
    const arr = [];
    str.forEach((el, index) => {
      const copy = Array.from(str);
      copy.splice(index, 1);
      arr.push(parseInt(copy.join(''), 10));
    });
    return Math.max.apply(null, arr);
  }
  
  module.exports = deleteDigit;
  