@newdash/newdash
Version:
javascript/typescript utility library
16 lines (15 loc) • 448 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const GLOBAL_1 = require("./GLOBAL");
const noop_1 = require("./noop");
/**
* Gets metadata for `func`.
*
* @private
* @param {Function} func The function to query.
* @returns {*} Returns the metadata for `func`.
*/
const getData = !GLOBAL_1.metaMap ? noop_1.noop : function (func) {
return GLOBAL_1.metaMap.get(func);
};
exports.default = getData;