mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Bump to v3.6.0.
This commit is contained in:
16
internal/isLaziable.js
Normal file
16
internal/isLaziable.js
Normal file
@@ -0,0 +1,16 @@
|
||||
define(['./LazyWrapper', './getFuncName', '../chain/lodash'], function(LazyWrapper, getFuncName, lodash) {
|
||||
|
||||
/**
|
||||
* Checks if `func` has a lazy counterpart.
|
||||
*
|
||||
* @private
|
||||
* @param {Function} func The function to check.
|
||||
* @returns {boolean} Returns `true` if `func` has a lazy counterpart, else `false`.
|
||||
*/
|
||||
function isLaziable(func) {
|
||||
var funcName = getFuncName(func);
|
||||
return !!funcName && func === lodash[funcName] && funcName in LazyWrapper.prototype;
|
||||
}
|
||||
|
||||
return isLaziable;
|
||||
});
|
||||
Reference in New Issue
Block a user