mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 19:34:27 -05:00
added yes, no, on and off as boolean aliases and a nice aliases section to the docs
This commit is contained in:
5
documentation/cs/aliases.cs
Normal file
5
documentation/cs/aliases.cs
Normal file
@@ -0,0 +1,5 @@
|
||||
launch() if ignition is on
|
||||
|
||||
volume: 10 if band aint spinal_tap
|
||||
|
||||
let_the_wild_rumpus_begin() unless answer is no
|
||||
@@ -1,3 +1,4 @@
|
||||
js: => `alert("Hello JavaScript");`.
|
||||
hi: `function() {
|
||||
return [document.title, "Hello JavaScript"].join(": ");
|
||||
}`
|
||||
|
||||
js() if 10 > 9
|
||||
Reference in New Issue
Block a user