mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Remove noop.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import metaMap from './_metaMap.js';
|
||||
import noop from './noop.js';
|
||||
|
||||
/**
|
||||
* Gets metadata for `func`.
|
||||
@@ -8,6 +7,8 @@ import noop from './noop.js';
|
||||
* @param {Function} func The function to query.
|
||||
* @returns {*} Returns the metadata for `func`.
|
||||
*/
|
||||
const getData = !metaMap ? noop : func => metaMap.get(func);
|
||||
const getData = metaMap
|
||||
? func => metaMap.get(func)
|
||||
: () => {};
|
||||
|
||||
export default getData;
|
||||
|
||||
Reference in New Issue
Block a user