7b4829924d93f7b0aedb7ff7b527243cd7b7c318
[platform/framework/web/crosswalk-tizen.git] /
1 var LazyWrapper = require('./LazyWrapper'),
2     getFuncName = require('./getFuncName'),
3     lodash = require('../chain/lodash');
4
5 /**
6  * Checks if `func` has a lazy counterpart.
7  *
8  * @private
9  * @param {Function} func The function to check.
10  * @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
11  */
12 function isLaziable(func) {
13   var funcName = getFuncName(func);
14   return !!funcName && func === lodash[funcName] && funcName in LazyWrapper.prototype;
15 }
16
17 module.exports = isLaziable;