"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 _ref = dataSource.find(item => value && item.value === value) || {},
    title = _ref.title;
  return title;
};
exports.getPlaceCaption = getPlaceCaption;
//# sourceMappingURL=getPlaceCaption.js.map