"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getPlaceCaption = void 0;
const getPlaceCaption = function (value) {
  let dataSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
  const {
    title
  } = dataSource.find(item => value && item.value === value) || {};
  return title;
};
exports.getPlaceCaption = getPlaceCaption;
//# sourceMappingURL=getPlaceCaption.js.map