import * as merge from "ramda/src/merge" ; import { Config , Map } from "../../../types" ; export default function replace ( config , current , record ) { var key = config . key ; var recordKey = record [ key ] ; return merge ( current , { [ recordKey ] : record } ) ; }