mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Bump to v3.6.0.
This commit is contained in:
17
internal/isLaziable.js
Normal file
17
internal/isLaziable.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import LazyWrapper from './LazyWrapper';
|
||||
import getFuncName from './getFuncName';
|
||||
import lodash from '../chain/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;
|
||||
}
|
||||
|
||||
export default isLaziable;
|
||||
Reference in New Issue
Block a user