1 var LazyWrapper = require('./_LazyWrapper'),
2 getData = require('./_getData'),
3 getFuncName = require('./_getFuncName'),
4 lodash = require('./wrapperLodash');
7 * Checks if `func` has a lazy counterpart.
10 * @param {Function} func The function to check.
11 * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
13 function isLaziable(func) {
14 var funcName = getFuncName(func),
15 other = lodash[funcName];
17 if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {
23 var data = getData(other);
24 return !!data && func === data[0];
27 module.exports = isLaziable;