1 var LazyWrapper = require('./LazyWrapper'),
2 getFuncName = require('./getFuncName'),
3 lodash = require('../chain/lodash');
6 * Checks if `func` has a lazy counterpart.
9 * @param {Function} func The function to check.
10 * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
12 function isLaziable(func) {
13 var funcName = getFuncName(func);
14 return !!funcName && func === lodash[funcName] && funcName in LazyWrapper.prototype;
17 module.exports = isLaziable;