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

Asked Apr 5, 2020·2 replies·Last activity 6 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

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})

2 replies

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}`)

It works perfectly now, thank you!