I'm reading this code . It's my first encounter with RxJS.
Here is the relevant code:
const resolvedAll = updatedPkgJSONs
::map((pkgJson) => ({pkgJson, target: '..', isProd}))
::resolveAll(nodeModules, undefined, isExplicit)::skip(1)
::publishReplay().refCount()
I'm trying to guess the meaning of the above statement. But I'm stuck at resolveAll
function.
Here is the resolveAll
function:
export function resolveAll (nodeModules, targets = Object.create(null), isExplicit) {
return this::expand(({target, pkgJson, isProd = false}) => {
// more code
})
}
What's the meaning of this::expand
?
Is it the case that the parameters should match?
({pkgJson, target: '..', isProd})
and {target, pkgJson, isProd = false}
I know there is the document. But I'm having a hard time relating the document to my example.