module.exports = class ArrayUtil {

  // Generates array from given hex string
  static fromHex(hex) {
    const array = []
    for(var i = 0; i < hex.length; i += 2) {
      //value = hex[index]
      array.push(parseInt(hex.slice(index, index + 2), 16))
    }
    return array
  }

  // Converts given data to buffer
  static toBuffer(data) {
    const buffer = new Buffer(data.byteLength || data.length)
    const view = new Uint8Array(data)
    for(var i in view) {

      // byte, i in view
      buffer[i] = view[i]
    }
    return buffer
  }

}

@@ -166,35 +166,8 @@
 ) %7B%0A
-      //value = hex%5Bindex%5D%0A
     
@@ -203,19 +203,11 @@
 ce(i
-ndex, index
+, i
  + 2

Fix ArrayUtil.fromHex