'use strict';

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

var _reselect = require('reselect');

var _flattened_features = require('./flattened_features');

var _flattened_features2 = _interopRequireDefault(_flattened_features);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var getFeaturesById = (0, _reselect.createSelector)(_flattened_features2.default, function (features) {
  return features.reduce(function (p, v) {
    p[v.id] = v;
    return p;
  }, {});
});

exports.default = getFeaturesById;
//# sourceMappingURL=features_by_id.js.map