{"ScriptPreparationCode":null,"TestCases":[{"Name":"Lodash FindKey","Code":"var event = {\r\n \u0022Note_On\u0022: {prefix: 0x90, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Note_Off\u0022: {prefix: 0x80, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Note_AT\u0022: {prefix: 0xA0, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Bank_Select\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0, 0x20, channel, value)}},\r\n \u0022Mod_Wheel\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x1, 0x21, channel, value)}},\r\n \u0022Breath\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x2, 0x22, channel, value)}},\r\n \u0022Foot_Pedal\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x4, 0x24, channel, value)}},\r\n \u0022Portamento_Time\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x5, 0x25, channel, value)}},\r\n \u0022Data_Entry\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x6, 0x26, channel, value)}},\r\n \u0022Channel_Volume\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x7, 0x27, channel, value)}},\r\n \u0022Balance\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x8, 0x28, channel, value)}},\r\n \u0022Pan\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0a, 0x2a, channel, value)}},\r\n \u0022Expression\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0b, 0x2b, channel, value)}},\r\n \u0022Effect_1\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0xc, 0x2c, channel, value)}},\r\n \u0022Effect_2\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0xd, 0x2d, channel, value)}}\r\n}\r\nlet y = _.findKey(event, function(e, f) {\r\n return e.prefix === 0xB0 \u0026\u0026 f===\u0022Effect_2\u0022 \r\n})\r\nlet y2 = event[y]","IsDeferred":false},{"Name":"Direct Access","Code":"var event = {\r\n \u0022Note_On\u0022: {prefix: 0x90, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Note_Off\u0022: {prefix: 0x80, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Note_AT\u0022: {prefix: 0xA0, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Bank_Select\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0, 0x20, channel, value)}},\r\n \u0022Mod_Wheel\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x1, 0x21, channel, value)}},\r\n \u0022Breath\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x2, 0x22, channel, value)}},\r\n \u0022Foot_Pedal\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x4, 0x24, channel, value)}},\r\n \u0022Portamento_Time\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x5, 0x25, channel, value)}},\r\n \u0022Data_Entry\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x6, 0x26, channel, value)}},\r\n \u0022Channel_Volume\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x7, 0x27, channel, value)}},\r\n \u0022Balance\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x8, 0x28, channel, value)}},\r\n \u0022Pan\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0a, 0x2a, channel, value)}},\r\n \u0022Expression\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0b, 0x2b, channel, value)}},\r\n \u0022Effect_1\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0xc, 0x2c, channel, value)}},\r\n \u0022Effect_2\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0xd, 0x2d, channel, value)}}\r\n}\r\nlet y2 = event[\u0022Effect_2\u0022]","IsDeferred":false},{"Name":"Object Entries","Code":"var event = {\r\n \u0022Note_On\u0022: {prefix: 0x90, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Note_Off\u0022: {prefix: 0x80, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Note_AT\u0022: {prefix: 0xA0, createMessage(channel, note, velocity) {return [[this.prefix\u002Bchannel-1, note, velocity]]}},\r\n \u0022Bank_Select\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0, 0x20, channel, value)}},\r\n \u0022Mod_Wheel\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x1, 0x21, channel, value)}},\r\n \u0022Breath\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x2, 0x22, channel, value)}},\r\n \u0022Foot_Pedal\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x4, 0x24, channel, value)}},\r\n \u0022Portamento_Time\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x5, 0x25, channel, value)}},\r\n \u0022Data_Entry\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x6, 0x26, channel, value)}},\r\n \u0022Channel_Volume\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x7, 0x27, channel, value)}},\r\n \u0022Balance\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x8, 0x28, channel, value)}},\r\n \u0022Pan\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0a, 0x2a, channel, value)}},\r\n \u0022Expression\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0x0b, 0x2b, channel, value)}},\r\n \u0022Effect_1\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0xc, 0x2c, channel, value)}},\r\n \u0022Effect_2\u0022: {prefix: 0xB0, createMessage(channel, value) {return createCCMessage(this.prefix, 0xd, 0x2d, channel, value)}}\r\n}\r\nlet y2 \r\nfor (const [key, value] of Object.entries(event)) {\r\n if (value.prefix === 0xB0 \u0026\u0026 key===\u0022Effect_2\u0022){\r\n y2 = {[key]: value}\r\n }\r\n }","IsDeferred":false}]}