Remove stray open curly brace
Removes open curly brace in console.log in Measure time taken by function snippet
This commit is contained in:
@ -6,7 +6,7 @@ First argument is the function name, subsequent arguments are passed to the func
|
|||||||
```js
|
```js
|
||||||
var timeTaken = (f,...args) => {
|
var timeTaken = (f,...args) => {
|
||||||
var t0 = performance.now(), r = f(...args);
|
var t0 = performance.now(), r = f(...args);
|
||||||
console.log({performance.now() - t0);
|
console.log(performance.now() - t0);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user