mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Cleanup isBindable.
This commit is contained in:
@@ -3580,11 +3580,9 @@
|
|||||||
* @returns {boolean} Returns `true` if `func` is eligible, else `false`.
|
* @returns {boolean} Returns `true` if `func` is eligible, else `false`.
|
||||||
*/
|
*/
|
||||||
function isBindable(func) {
|
function isBindable(func) {
|
||||||
var support = lodash.support;
|
var support = lodash.support,
|
||||||
if (support.funcNames) {
|
result = !(support.funcNames ? func.name : support.funcDecomp);
|
||||||
var result = !func.name;
|
|
||||||
}
|
|
||||||
result = result || !support.funcDecomp;
|
|
||||||
if (!result) {
|
if (!result) {
|
||||||
var source = fnToString.call(func);
|
var source = fnToString.call(func);
|
||||||
if (!support.funcNames) {
|
if (!support.funcNames) {
|
||||||
|
|||||||
Reference in New Issue
Block a user