function getColumnOption(source, optionName, defaultValue) {
  if (source != "undefined") {
    for (var i in source) {
      if (source[i]["key"] == optionName) {
        return source[i]["value"]
      }
    }
  }

  return defaultValue
}

export { getColumnOption }