summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/internal/createObjectMapper.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/internal/createObjectMapper.js')
-rw-r--r--tools/eslint/node_modules/lodash/internal/createObjectMapper.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/tools/eslint/node_modules/lodash/internal/createObjectMapper.js b/tools/eslint/node_modules/lodash/internal/createObjectMapper.js
deleted file mode 100644
index 06d6a87399..0000000000
--- a/tools/eslint/node_modules/lodash/internal/createObjectMapper.js
+++ /dev/null
@@ -1,26 +0,0 @@
-var baseCallback = require('./baseCallback'),
- baseForOwn = require('./baseForOwn');
-
-/**
- * Creates a function for `_.mapKeys` or `_.mapValues`.
- *
- * @private
- * @param {boolean} [isMapKeys] Specify mapping keys instead of values.
- * @returns {Function} Returns the new map function.
- */
-function createObjectMapper(isMapKeys) {
- return function(object, iteratee, thisArg) {
- var result = {};
- iteratee = baseCallback(iteratee, thisArg, 3);
-
- baseForOwn(object, function(value, key, object) {
- var mapped = iteratee(value, key, object);
- key = isMapKeys ? mapped : key;
- value = isMapKeys ? value : mapped;
- result[key] = value;
- });
- return result;
- };
-}
-
-module.exports = createObjectMapper;