is_ip_address = (hostname) => {
  if (typeof hostname !== "string") return false;
  return hostname.split(".").every((s) => +s >= 0 && +s <= 255);
}
Check that String is IPv4 address
@param {string} hostname
@returns {boolean|string[]}