2 lines
169 B
JavaScript
2 lines
169 B
JavaScript
|
export const getResolvedPartition = (region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws";
|