split the hex string into individual bytes using JavaScript

I am trying to split the given hexadecimal string 3E8.8F5C28F5C28 into individual bytes. I tried the following code to split the given hexadecimal string const string = "3E8.8F5C28F5C28"; const res = string.split(/([dw]{2})/).filter(e => e); but it gave me a result like [ '3E', '8.', '8F', '5C', '28', 'F5', 'C2', '8' ] but I need to split the given hex string like 03 E8 8F.I don’t want the fractional values after 8F.how to achieve this help me.