UNPKG

@yext/analytics

Version:

An analytics library for Yext

14 lines 638 B
import { EventPayload } from './EventPayload'; /** * Used for merging request JSON into an existing EventPayload. * Returns a new EventPayload, with the original object unaffected. * The merge occurs using the following conventions: * * Merging an existing key with null/undefined deletes the key. * Merging an existing key with non-null value updates the value. * Merging a non-existing key adds the key/value. * When the value is an object, the above is applied recursivley. */ declare const merge: (original: EventPayload, newValues: EventPayload) => EventPayload; export default merge; //# sourceMappingURL=merge.d.ts.map