blah
This commit is contained in:
1 parent
603130b219
commit
7ab6413484
1 file changed
+18
@@ -0,0 +1,18 @@
|
||||
let websites = [
|
||||
"https://google.com",
|
||||
"https://lapresse.ca",
|
||||
"https://theguardian.com"
|
||||
];
|
||||
|
||||
function computeTimeToLoad(url: string): number{
|
||||
return 98;
|
||||
}
|
||||
|
||||
function computeAllLoadTime(websites: string[]): Map<string, number>{
|
||||
let ret = new Map<string, number>();
|
||||
for(let website of websites){
|
||||
ret.set(website, computeTimeToLoad(website));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user