"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

var formateOptions = function formateOptions(options, labelKey, valueKey) {
  return options.map(function (option) {
    var _a;

    if (typeof option === 'string') {
      return _a = {}, _a[labelKey] = option, _a[valueKey] = option, _a;
    }

    return option;
  });
};

exports["default"] = formateOptions;

