Permalink
Browse files

this does not work for new Array(6).map...

  • Loading branch information...
1 parent f6c3382 commit 0c3e39b2d296c1c43c581e5c2f1555300ee602ba @marcuswestin committed May 20, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 map.js
View
1 map.js
@@ -3,7 +3,6 @@ var isList = require('./isList')
var isArray = require('./isArray')
module.exports = function map(obj, fn) {
- if (isArray(obj) && obj.map) { return obj.map(fn) }
var result = isList(obj) ? new Array(obj.length) : {}
each(obj, function(val, key) {
result[key] = fn(val, key)

0 comments on commit 0c3e39b

Please sign in to comment.