import { reStringToBoolean } from '../@/patterns.js';
import string from '../is/string.js';

/**
 *
 * @function
 * @memberof to
 * @param {any} value
 * @returns {Boolean}
 */
export default function booleanOf(value) {
	if (string(value)) {
		return reStringToBoolean.test(value);
	}
	return !!value;
}

@@ -231,16 +231,32 @@
 g(value)
+ && value.length
 ) %7B%0A%09%09re

empty string