UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

19 lines (18 loc) 352 B
/** * Combine two objects into one. If both objects have the same key, the value of the second object will be used. * @param a * @param b * @returns */ export function combineObject(a, b) { if (!a && !b) { return undefined; } if (!a) { return b; } if (!b) { return a; } return { ...a, ...b }; }