• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Generated by CoffeeScript 2.5.1
2(function() {
3  // Assignment:
4  var cubes, list, math, num, number, opposite, race, square;
5
6  number = 42;
7
8  opposite = true;
9
10  if (opposite) {
11    // Conditions:
12    number = -42;
13  }
14
15  // Functions:
16  square = function(x) {
17    return x * x;
18  };
19
20  // Arrays:
21  list = [1, 2, 3, 4, 5];
22
23  // Objects:
24  math = {
25    root: Math.sqrt,
26    square: square,
27    cube: function(x) {
28      return x * square(x);
29    }
30  };
31
32  // Splats:
33  race = function(winner, ...runners) {
34    return print(winner, runners);
35  };
36
37  // Existence:
38  if (true) {
39    alert("I knew it!");
40  }
41
42  // Array comprehensions:
43  cubes = (function() {
44    var i, len, results;
45    results = [];
46    for (i = 0, len = list.length; i < len; i++) {
47      num = list[i];
48      results.push(math.cube(num));
49    }
50    return results;
51  })();
52
53}).call(this);
54
55//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRhYnMuY29mZmVlIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBYTtFQUFBO0FBQUEsTUFBQSxLQUFBLEVBQUEsSUFBQSxFQUFBLElBQUEsRUFBQSxHQUFBLEVBQUEsTUFBQSxFQUFBLFFBQUEsRUFBQSxJQUFBLEVBQUE7O0VBQ2IsTUFBQSxHQUFXOztFQUNYLFFBQUEsR0FBVzs7RUFHWCxJQUFnQixRQUFoQjs7SUFBQSxNQUFBLEdBQVMsQ0FBQyxHQUFWO0dBTGE7OztFQVFiLE1BQUEsR0FBUyxRQUFBLENBQUMsQ0FBRCxDQUFBO1dBQU8sQ0FBQSxHQUFJO0VBQVgsRUFSSTs7O0VBV2IsSUFBQSxHQUFPLENBQUMsQ0FBRCxFQUFJLENBQUosRUFBTyxDQUFQLEVBQVUsQ0FBVixFQUFhLENBQWIsRUFYTTs7O0VBY2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