UNPKG

@resk/core

Version:

An innovative TypeScript framework that empowers developers to build applications with a fully decorator-based architecture for efficient resource management. By combining the power of decorators with a resource-oriented design, DecorRes enhances code cla

15 lines (14 loc) 507 B
/** * Returns the first boolean value among the provided arguments. * * @param {...any[]} args The values to check for a boolean value. * @returns {boolean} The first boolean value found, or false if none is found. * * Example: * ```ts * console.log(defaultBool("a string", false, true)); // Output: false * console.log(defaultBool(1, 2, 3)); // Output: false * console.log(defaultBool("hello", 42,true, )); // Output: true * ``` */ export default function defaultBool(...args: any[]): boolean;