Shallowly merges 'objToMerge` into another object, overriding the properties of the other object in case of conflict.
import * as P from "flurp/pojo";const mergeX = P.merge({ x: 2 });mergeX({ y: 5 }); // { x: 2, y: 5 }mergeX({ x: 3, y: 5 }); // { x: 2, y: 5 }
Shallowly merges 'objToMerge` into another object, overriding the properties of the other object in case of conflict.
Example