Sha256: 6863f63c866527fb17eba2b8abd81f04cdde2057c76201f3ac190494d319bd33
Contents?: true
Size: 712 Bytes
Versions: 291
Compression:
Stored size: 712 Bytes
Contents
var LazyWrapper = require('./_LazyWrapper'), getData = require('./_getData'), getFuncName = require('./_getFuncName'), lodash = require('./wrapperLodash'); /** * 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), other = lodash[funcName]; if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) { return false; } if (func === other) { return true; } var data = getData(other); return !!data && func === data[0]; } module.exports = isLaziable;
Version data entries
291 entries across 267 versions & 32 rubygems