Bump to v3.9.2.

This commit is contained in:
jdalton
2015-05-24 01:42:23 -07:00
parent 30daf83737
commit 3d3907ff27
23 changed files with 68 additions and 48 deletions

View File

@@ -1,4 +1,5 @@
import LazyWrapper from './LazyWrapper';
import getData from './getData';
import getFuncName from './getFuncName';
import lodash from '../chain/lodash';
@@ -11,7 +12,15 @@ import lodash from '../chain/lodash';
*/
function isLaziable(func) {
var funcName = getFuncName(func);
return !!funcName && func === lodash[funcName] && funcName in LazyWrapper.prototype;
if (!(funcName in LazyWrapper.prototype)) {
return false;
}
var other = lodash[funcName];
if (func === other) {
return true;
}
var data = getData(other);
return !!data && func === data[0];
}
export default isLaziable;