yes()

Creates a function which takes values that will be interpreted as booleans and will return the correspond string (or value).

This function is valid in v2.23.0. This function has been downloaded 2 times.

Parameters

{*=} opt_yesValue Optional, Default:"Yes"
The value that will be returned when true-ish values are passed to the returned function.
{*=} opt_noValue Optional, Default:"No"
The value that will be returned when false-ish values are passed to the returned function.
{*=} opt_maybeValue Optional
The value that will be returned when neither true no false is passed to the returned function. If not given then all values will be interpreted as true or false.

Returns

{Function}
The function which will accept one value that will be interpreted as a boolean and will return opt_yesValue, opt_noValue or opt_maybeValue.