Right-hand side of 'instanceof' is not an object Error

Hoping you all could take a look at a command I have pulled from a forum and see where the error is; I have reviewed many times and cannot seem to see where it is missing quotes:

Command:

$(eval a=$(urlfetch json https://twitch.center/customapi/quote/list?token=f1be7bc1).match(/~\d+K~/g);a?(b=a.length,c=(+a.map(x=>x.slice(1,x.length-1)).join(, )+)):(b=0,c=``);`$(channel) has ${b} wins ${c})

Fixed.

$(eval a=`$(urlfetch json https://twitch.center/customapi/quote/list?token=f1be7bc1)`.match(/~\d+K~/g);a?(b=a.length,c=`(`+a.map(x=>x.slice(1,x.length-1)).join(`, `)+`)`):(b=0,c=``);`$(channel) has ${b} wins ${c}`)
1 Like

It works perfectly now, thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.