mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
26 lines
277 B
CoffeeScript
26 lines
277 B
CoffeeScript
a: [(x => x), (x => x * x)]
|
|
|
|
print(a.length is 2)
|
|
|
|
|
|
regex: /match/i
|
|
words: "I think there is a match in here."
|
|
|
|
print(!!words.match(regex))
|
|
|
|
|
|
neg: (3 -4)
|
|
|
|
print(neg is -1)
|
|
|
|
|
|
func: =>
|
|
return if true
|
|
|
|
print(func() is null)
|
|
|
|
|
|
str: "\\"
|
|
reg: /\\/
|
|
|
|
print(reg(str) and str is '\\') |