From 807ad48bbc510b12df04eb5840f91a627ea8cccd Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 7 Jun 2016 12:19:35 -0700 Subject: [PATCH] Add compat note to `addSetEntry`. [ci skip] --- lodash.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 636a32a0a..e6ada06ab 100644 --- a/lodash.js +++ b/lodash.js @@ -392,7 +392,7 @@ * @returns {Object} Returns `map`. */ function addMapEntry(map, pair) { - // Don't return `Map#set` because it doesn't return the map instance in IE 11. + // Don't return `map.set` because it's not chainable in IE 11. map.set(pair[0], pair[1]); return map; } @@ -406,6 +406,7 @@ * @returns {Object} Returns `set`. */ function addSetEntry(set, value) { + // Don't return `set.add` because it's not chainable in IE 11. set.add(value); return set; }