All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash._baseSetData.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
var identity = require('./identity'),
    metaMap = require('./_metaMap');

/**
 * The base implementation of `setData` without support for hot loop shorting.
 *
 * @private
 * @param {Function} func The function to associate metadata with.
 * @param {*} data The metadata.
 * @returns {Function} Returns `func`.
 */
var baseSetData = !metaMap ? identity : function(func, data) {
  metaMap.set(func, data);
  return func;
};

module.exports = baseSetData;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy