function isNumber(o) {
    return typeof o === 'number' ||
      o && typeof o === 'object' && toStr.call(o) === '[object Number]' || false
  }