UNPKG

276 BJavaScriptView Raw
1/*
2object:map
3*/"use strict"
4
5var forIn = require("./forIn")
6
7var 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
15module.exports = map