mirror of
https://github.com/azure/login.git
synced 2026-06-06 01:47:06 +00:00
14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
define(function () {
|
|
|
|
// Internal helper that wraps an `iteratee` to call it with the
|
|
// property of a closed-over `object`. Useful when iterating over
|
|
// an array of keys of `object`.
|
|
function applyProperty(iteratee, object) {
|
|
return function(key) {
|
|
return iteratee(object[key], key, object);
|
|
};
|
|
}
|
|
|
|
return applyProperty;
|
|
|
|
});
|