From 6254b49fb0b966596496ce9922d2bcb93eaef176 Mon Sep 17 00:00:00 2001 From: anbnyc Date: Mon, 11 Dec 2017 14:40:53 -0500 Subject: [PATCH] Remove stray open curly brace Removes open curly brace in console.log in Measure time taken by function snippet --- snippets/measure-time-taken-by-function.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/measure-time-taken-by-function.md b/snippets/measure-time-taken-by-function.md index 0bae09591..254243c56 100644 --- a/snippets/measure-time-taken-by-function.md +++ b/snippets/measure-time-taken-by-function.md @@ -6,7 +6,7 @@ First argument is the function name, subsequent arguments are passed to the func ```js var timeTaken = (f,...args) => { var t0 = performance.now(), r = f(...args); - console.log({performance.now() - t0); + console.log(performance.now() - t0); return r; } ```