code: function findIntf(intf, osIntfs) {
    var keys = Object.keys(osIntfs);
    for (var i = 0, len = keys.length; i < len; i++) {
      var key = keys[i];
  
      if (intf === key) {
        return osIntfs[key];
      }
    }
  
    return null;
  }
docs: Find the interface by interface name in the data returned by os.networkInterfaces.
  @param intf
  @param osIntfs