I have found that this syntax is valid for defining a function
let path = finalObjs.vendorPath
const getAllIndexes = (dependenciesResultToHydrateFlat, path) => {
}
However, this syntax is invalid
const getAllIndexes = (dependenciesResultToHydrateFlat, finalObjs.vendorPath) => {
}
Why is it not allowed to use dot notation directly to reference a property value when defining a function? It feels like these two are functionally the same and I don't understand why the latter is invalid. Explanation from the wizards is appreciated.
let pathin your first example doesn't actually do anything.pathin your first example are completely different entities that just happen to have the same name? Or is that part of your question?