We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd3cf97 commit 0a15fa1Copy full SHA for 0a15fa1
coffee/comparison_table.coffee
@@ -38,11 +38,8 @@ class ForComparison
38
else if @item instanceof Array
39
@asString = JSON.stringify(@item)
40
testResults: (fc2, comparator="===")->
41
- if @asString is "{}"
42
- evalStr = "[#{@asString}#{comparator}#{fc2.asString}][0]"
43
- else
44
- evalStr = "#{@asString}#{comparator}#{fc2.asString}"
45
- [evalStr, eval(evalStr)]
+ evalStr = "" + @asString + comparator + fc2.asString
+ [evalStr, eval('(' + evalStr + ')')]
46
toString: ->
47
@asString
48
0 commit comments