使用JavaScript表示法:
A = {color:'red',size:8,type:'circle'};
L = [{color:'gray',size:15,type:'square'},
{color:'pink',size:4,type:'triangle'},
{color:'red',size:8,type:'circle'},
{color:'red',size:12,type:'circle
因此,我试图使用javascript制作一个简单的不和谐机器人,我想检测一个玩家的用户名是否在被禁止的列表中。我有一个数组
var banned = ['Andrew','David']
如果
if (message.author.username instanceof banned) {.....
但是当我运行它时,它会输出
if (message.author.username instanceof banned)
^
TypeError: Right-hand side of 'instan