function hasUnicodeBOM(value) {
	return typeof value === "string"
		? value.charCodeAt(0) === 0xfeff
		: value[0] === 0xef && value[1] === 0xbb && value[2] === 0xbf;
}
Determines if a given value has a byte order mark (BOM).
@param {string|Uint8Array} value The value to check.
@returns {boolean} `true` if the value has a BOM, `false` otherwise.