shortener = (what, length) => {
  let parse = parseInt(length),
    len = what.length
  if (!parse) {
    return
  }
  return len >= parse
    ? `${what.substr(0, length - 2)}..`
    : len < parse
      ? what
      : null
}
Shortens what with string length
@param {String} what
@param {Number} length