Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_getData.js « lodash « node_modules - github.com/austingebauer/devise.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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;