You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
447 B
19 lines
447 B
"use strict"; |
|
|
|
var isPrototype = require("../prototype/is"); |
|
|
|
module.exports = function (value) { |
|
if (typeof value !== "function") return false; |
|
|
|
if (!hasOwnProperty.call(value, "length")) return false; |
|
|
|
try { |
|
if (typeof value.length !== "number") return false; |
|
if (typeof value.call !== "function") return false; |
|
if (typeof value.apply !== "function") return false; |
|
} catch (error) { |
|
return false; |
|
} |
|
|
|
return !isPrototype(value); |
|
};
|
|
|