export const getId = feat => (feat === null || feat === void 0 ? void 0 : feat.getId()) || (feat === null || feat === void 0 ? void 0 : feat.get("id"));
export const removeDuplicateFeatures = function () {
  let featureArray = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
  return featureArray.reduce((final, feat) => {
    return final.find(f => getId(f) === getId(feat)) ? final : [...final, feat];
  }, []);
};
export default removeDuplicateFeatures;
//# sourceMappingURL=removeDuplicateFeatures.js.map