code: function parsePrice(s) {
    if (typeof s === 'number') return s;
    s = str(s).replace(/[\s,$]/g,'');
    return s ? Number(s) : NaN;
  }
docs: return number given a price string ignores whitespace,  ',' and '$' null, undefined, and '' all fail with NaN