From f199cd335a054857ce1418d1fcdb88c9d346f339 Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Sat, 1 Aug 2015 23:38:27 -0700 Subject: [PATCH] Add some javadoc to update --- lib/update.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/update.js b/lib/update.js index 34e8d27..9c9f470 100644 --- a/lib/update.js +++ b/lib/update.js @@ -39,6 +39,10 @@ function updateArray(updates, obj) { * Or with a function: * update({ foo: x => (x + 1) }, { foo: 2 }); * // => { foo: 3 } + * + * @param {Object|Function} updates + * @param {Object|Array} object to update + * @return {Object|Array} new object with modifications */ function update(updates, obj) { if (typeof updates === 'function') {