Sha256: b2a2251c265920e355cf5542ac81d3535947c87db99fb329eb9addfee85515b4

Contents?: true

Size: 456 Bytes

Versions: 264

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

264 entries across 262 versions & 29 rubygems

Version Path
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
clapton-0.0.19 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.49 node_modules/lodash/_baseSetData.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js
immosquare-cleaner-0.1.48 node_modules/lodash/_baseSetData.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/lodash/_baseSetData.js