diff --git a/lib/map.js b/lib/map.js index ecf016b..e703814 100644 --- a/lib/map.js +++ b/lib/map.js @@ -18,7 +18,10 @@ function clone(object) { } function map(iteratee, object) { - const updater = update(iteratee); + const updater = typeof iteratee === 'function' ? + iteratee : + update(iteratee); + let newObject; forEach(object, (value, index) => {