@akwaba/object-extensions
Version:
A collection of object utility methods
11 lines (8 loc) • 321 B
JavaScript
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";