UNPKG

@inglorious/utils

Version:

A set of general-purpose utility functions designed with functional programming principles in mind.

10 lines (9 loc) 233 B
/** * Checks if a value is a function. * * @param {*} func - The value to check. * @returns {boolean} True if the value is a function, false otherwise. */ export function isFunction(func) { return typeof func === "function" }