UNPKG

@akwaba/object-extensions

Version:
11 lines (8 loc) 321 B
import getClass from "./get-class"; /** * Returns true if the specified object is a function; otherwise, returns false * * @param {Object} object the object to check * @return {Boolean} true if the object is a function; otherwise, returns false */ export default (object) => getClass(object) === "Function";