Return the the boolean value of the first non-null element. Example:
const opts = { flag: true };const value = util.toBool(opts.foo, opts.flag, false); // returns true Copy
const opts = { flag: true };const value = util.toBool(opts.foo, opts.flag, false); // returns true
Rest
Return the the boolean value of the first non-null element. Example: