Sha256: 6863f63c866527fb17eba2b8abd81f04cdde2057c76201f3ac190494d319bd33

Contents?: true

Size: 712 Bytes

Versions: 291

Compression:

Stored size: 712 Bytes

Contents

var LazyWrapper = require('./_LazyWrapper'),
    getData = require('./_getData'),
    getFuncName = require('./_getFuncName'),
    lodash = require('./wrapperLodash');

/**
 * Checks if `func` has a lazy counterpart.
 *
 * @private
 * @param {Function} func The function to check.
 * @returns {boolean} Returns `true` if `func` has a lazy counterpart,
 *  else `false`.
 */
function isLaziable(func) {
  var funcName = getFuncName(func),
      other = lodash[funcName];

  if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
    return false;
  }
  if (func === other) {
    return true;
  }
  var data = getData(other);
  return !!data && func === data[0];
}

module.exports = isLaziable;

Version data entries

291 entries across 267 versions & 32 rubygems

Version Path
trusty-cms-6.3.1 node_modules/lodash/_isLaziable.js
immosquare-cleaner-0.1.51 node_modules/lodash/_isLaziable.js
boring_generators-0.15.0 tmp/templates/app_template/node_modules/lodash/_isLaziable.js
clapton-0.0.26 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.25 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
immosquare-cleaner-0.1.50 node_modules/lodash/_isLaziable.js
clapton-0.0.24 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.23 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.22 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.21 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.20 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.19 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.18 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.17 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.16 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
clapton-0.0.15 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
immosquare-cleaner-0.1.49 node_modules/lodash/_isLaziable.js
clapton-0.0.14 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js
immosquare-cleaner-0.1.48 node_modules/lodash/_isLaziable.js
clapton-0.0.13 lib/clapton/javascripts/node_modules/lodash/_isLaziable.js