Sindbad~EG File Manager

Current Path : /home/infinitibizsol/.trash/node_modules.4/type/function/
Upload File :
Current File : /home/infinitibizsol/.trash/node_modules.4/type/function/is.js

"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);
};

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists