結果 : check if function returns true javascript