Sha256: b2a2251c265920e355cf5542ac81d3535947c87db99fb329eb9addfee85515b4

Contents?: true

Size: 456 Bytes

Versions: 273

Compression:

Stored size: 456 Bytes

Contents

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;

Version data entries

273 entries across 271 versions & 29 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.59 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.58 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.57 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.56 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.55 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.54 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.53 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.52 node_modules/lodash/_baseSetData.js
trusty-cms-6.3.1 node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.51 node_modules/lodash/_baseSetData.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/_baseSetData.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.50 node_modules/lodash/_baseSetData.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js