I am trying to understand HomeAssistant frontend source code. I have found function definition that I dont uderstand well. I dont understand this syntax (model.entity is a string)...
export function createHasDataGetter(model) {
return [
['restApiCache', model.entity],
entityMap => !!entityMap,
];
}
It looks like smth like:
return [[string, string], bool]
?
What is exacly teturn type of this function? Is this just bool? If yes, does it mean entityMap is string array?