From 86f3f7055ed31b12404c7e0d84df0170d579d8da Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 2 Jan 2018 10:39:19 +0200 Subject: [PATCH] Update defer.md --- snippets/defer.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/snippets/defer.md b/snippets/defer.md index 1a0a63649..7403d4c36 100644 --- a/snippets/defer.md +++ b/snippets/defer.md @@ -2,9 +2,7 @@ Defers invoking a function until the current call stack has cleared. -Use `setTimeout()` with a timeout of 1ms to add a new event to the browser -event queue and allow the rendering engine to complete its work. Use the spread/rest (`...`) -operator to supply the function with an arbitrary number of arguments. +Use `setTimeout()` with a timeout of 1ms to add a new event to the browser event queue and allow the rendering engine to complete its work. Use the spread (`...`) operator to supply the function with an arbitrary number of arguments. ```js const defer = (fn, ...args) => setTimeout(fn, 1, ...args);