### JavaScript: Example Merged Configuration Output Source: https://github.com/stratokit/lazy-merge/blob/main/README.md Shows the resulting configuration object after the lazy-recursive-merge process, illustrating how functions are evaluated and values are resolved based on their dependencies and priorities. ```js {a: 'a', b: 'a/hello', p: 'hello', plugin: /* Promise */, f: 'm:a/hello'} ``` -------------------------------- ### JavaScript: Example Input Configuration Objects Source: https://github.com/stratokit/lazy-merge/blob/main/README.md Demonstrates an array of JavaScript objects used as input for the lazy-recursive-merge process. It includes simple values, functions that access other configuration properties, and a promise-returning function. ```js const configs = [ {a: 'a'}, {b: cfg => `${cfg.a}/${cfg.p}`}, {p: 'hi'}, {plugin: () => import('myPlugin')}, {f: cfg => `m:${cfg.b}`, p: 'hello'}, ] ``` -------------------------------- ### APIDOC: lrm Function Source: https://github.com/stratokit/lazy-merge/blob/main/README.md Documentation for the main `lrm` function, which performs the lazy recursive merge. It details the parameters, their types, and the return value. ```APIDOC `const config = lrm(objects, {target} = {})` - `objects`: array of enumerable objects (these cannot be Promises) - `target`: optional object that will get the configuration - returns the configuration object The return value is the mutated `target` object if it was passed. This way, you can retain references to a changing configuration object. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.