From fd6013c6eaa7fcdcd106a14e3adafdf762f19be8 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 10 Aug 2018 10:47:56 +0300 Subject: [PATCH] Update bindKey.md --- snippets/bindKey.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/bindKey.md b/snippets/bindKey.md index 3ed5d7eea..faa193364 100644 --- a/snippets/bindKey.md +++ b/snippets/bindKey.md @@ -3,7 +3,7 @@ Creates a function that invokes the method at a given key of an object, optionally adding any additional supplied parameters to the beginning of the arguments. Return a `function` that uses `Function.apply()` to bind `context[fn]` to `context`. -Use spread operator to prepend any additional supplied parameters to the arguments. +Use the spread operator (`...`) to prepend any additional supplied parameters to the arguments. ```js const bindKey = (context, fn, ...boundArgs) => (...args) => context[fn].apply(context, [...boundArgs, ...args]);