Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var hash = 'f0309f4197d5c04be459e5987fc7231822a0c0488772011d4531c4826516cb22'
- var array = hash.split(/(?=(?:..)*$)/).map(x => `0x${x}`)
- console.log(JSON.stringify(array))
- // ["0xf0","0x30","0x9f","0x41","0x97","0xd5","0xc0","0x4b","0xe4","0x59","0xe5","0x98","0x7f","0xc7","0x23","0x18","0x22","0xa0","0xc0","0x48","0x87","0x72","0x01","0x1d","0x45","0x31","0xc4","0x82","0x65","0x16","0xcb","0x22"]
Add Comment
Please, Sign In to add comment