function toBooleanMap(keys, defaultValue, displayName) {
	if (keys && !Array.isArray(keys)) {
		throw new Error(`${displayName} must be an array.`);
	}
	if (keys && keys.length > 0) {
		return keys.reduce((map, def) => {
			const [key, value] = def.split(":");

			if (key !== "__proto__") {
				map[key] = value === void 0 ? defaultValue : value === "true";
			}

			return map;
		}, {});
	}
	return void 0;
}
Convert a string array to a boolean map.
@param {string[]|null} keys The keys to assign true.
@param {boolean} defaultValue The default value for each property.
@param {string} displayName The property name which is used in error message.
@throws {Error} Requires array.
@returns {Record<string,boolean>} The boolean map.