1 | import metaMap from './_metaMap.js';
|
2 | import noop from './noop.js';
|
3 |
|
4 | /**
|
5 | * Gets metadata for `func`.
|
6 | *
|
7 | * @private
|
8 | * @param {Function} func The function to query.
|
9 | * @returns {*} Returns the metadata for `func`.
|
10 | */
|
11 | var getData = !metaMap ? noop : function(func) {
|
12 | return metaMap.get(func);
|
13 | };
|
14 |
|
15 | export default getData;
|