title: Object.split is not a function
body: <p>How do i fix the error <code>odd.split is not a function at Payment.redot</code> here is my code in typescript or ts, i am using angular.</p>
  <pre><code>  redot(odd){
      let o = odd.split('.');
      let decimal = '';
      if(typeof o[1] != 'undefined'){
        decimal = o[1];
        decimal = decimal.replace('%', '');
        if(decimal.length &gt; 2){
          decimal = decimal.substr(0, 2) + '...%';
        } else {
          decimal += '%';
        }
      }
      return o[0] + '.' + decimal;
    }
  </code></pre>