8889841cidentity.js000066600000000104150434611240006732 0ustar00"use strict"; module.exports = function (value) { return value; }; is.js000066600000000677150443535670005547 0ustar00"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); }; ensure.js000066600000000414150443535670006422 0ustar00"use strict"; var resolveException = require("../lib/resolve-exception") , is = require("./is"); module.exports = function (value/*, options*/) { if (is(value)) return value; return resolveException(value, "%v is not a function", arguments[1]); };