source: trip-planner-front/node_modules/lodash/_baseSetData.js@ 76712b2

Last change on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 456 bytes
RevLine 
[6a3a178]1var identity = require('./identity'),
2 metaMap = require('./_metaMap');
3
4/**
5 * The base implementation of `setData` without support for hot loop shorting.
6 *
7 * @private
8 * @param {Function} func The function to associate metadata with.
9 * @param {*} data The metadata.
10 * @returns {Function} Returns `func`.
11 */
12var baseSetData = !metaMap ? identity : function(func, data) {
13 metaMap.set(func, data);
14 return func;
15};
16
17module.exports = baseSetData;
Note: See TracBrowser for help on using the repository browser.