Testing JS logical equivanlence double bracket