UNPKG

@inglorious/utils

Version:

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

10 lines (9 loc) 274 B
/** * Converts a boolean value to its string representation. * * @param {boolean} bool - The boolean value to convert. * @returns {string} The string "true" if the input is true, otherwise "false". */ export function toString(bool) { return bool ? "true" : "false" }