_getData.js 323 B

123456789101112131415
  1. import metaMap from './_metaMap.js';
  2. import noop from './noop.js';
  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. export default getData;