1 | /*
|
2 | object:map
|
3 | */"use strict"
|
4 |
|
5 | var forIn = require("./forIn")
|
6 |
|
7 | var map = function(self, method, context){
|
8 | var results = {}
|
9 | forIn(self, function(value, key){
|
10 | results[key] = method.call(context, value, key, self)
|
11 | })
|
12 | return results
|
13 | }
|
14 |
|
15 | module.exports = map
|