00001 var LazyWrapper = require('./_LazyWrapper'), 00002 getData = require('./_getData'), 00003 getFuncName = require('./_getFuncName'), 00004 lodash = require('./wrapperLodash'); 00005 00014 function isLaziable(func) { 00015 var funcName = getFuncName(func), 00016 other = lodash[funcName]; 00017 00018 if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) { 00019 return false; 00020 } 00021 if (func === other) { 00022 return true; 00023 } 00024 var data = getData(other); 00025 return !!data && func === data[0]; 00026 } 00027 00028 module.exports = isLaziable;