mirror of
https://github.com/Azure/setup-helm.git
synced 2025-09-09 05:26:33 +00:00
v3 new release (#80)
This commit is contained in:
committed by
GitHub
parent
a767c8d3a1
commit
20d2b4f98d
19
node_modules/underscore/amd/mapObject.js
generated
vendored
Normal file
19
node_modules/underscore/amd/mapObject.js
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
define(['./_cb', './keys'], function (_cb, keys) {
|
||||
|
||||
// Returns the results of applying the `iteratee` to each element of `obj`.
|
||||
// In contrast to `_.map` it returns an object.
|
||||
function mapObject(obj, iteratee, context) {
|
||||
iteratee = _cb(iteratee, context);
|
||||
var _keys = keys(obj),
|
||||
length = _keys.length,
|
||||
results = {};
|
||||
for (var index = 0; index < length; index++) {
|
||||
var currentKey = _keys[index];
|
||||
results[currentKey] = iteratee(obj[currentKey], currentKey, obj);
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
return mapObject;
|
||||
|
||||
});
|
Reference in New Issue
Block a user