aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_getData.js
blob: a1fe7b7790ded66e46affdc4f35ede118c95759e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var metaMap = require('./_metaMap'),
    noop = require('./noop');

/**
 * Gets metadata for `func`.
 *
 * @private
 * @param {Function} func The function to query.
 * @returns {*} Returns the metadata for `func`.
 */
var getData = !metaMap ? noop : function(func) {
  return metaMap.get(func);
};

module.exports = getData;