_getData.js 325B

12345678910111213141516
  1. var metaMap = require('./_metaMap'),
  2. noop = require('./noop');
  3. /**
  4. * Gets metadata for `func`.
  5. *
  6. * @private
  7. * @param {Function} func The function to query.
  8. * @returns {*} Returns the metadata for `func`.
  9. */
  10. var getData = !metaMap ? noop : function(func) {
  11. return metaMap.get(func);
  12. };
  13. module.exports = getData;