mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Move internal modules to “internal” folder.
This commit is contained in:
14
.internal/getData.js
Normal file
14
.internal/getData.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import metaMap from './.internal/metaMap.js';
|
||||
|
||||
/**
|
||||
* Gets metadata for `func`.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} func The function to query.
|
||||
* @returns {*} Returns the metadata for `func`.
|
||||
*/
|
||||
const getData = metaMap
|
||||
? func => metaMap.get(func)
|
||||
: () => {};
|
||||
|
||||
export default getData;
|
||||
Reference in New Issue
Block a user