@jdeighan/coffee-utils 7.0.29 → 7.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/coffee_utils.coffee +6 -0
- package/src/coffee_utils.js +10 -0
package/package.json
CHANGED
package/src/coffee_utils.coffee
CHANGED
package/src/coffee_utils.js
CHANGED
@@ -456,3 +456,13 @@ export var className = function(aClass) {
|
|
456
456
|
return croak("className(): Bad input class");
|
457
457
|
}
|
458
458
|
};
|
459
|
+
|
460
|
+
// ---------------------------------------------------------------------------
|
461
|
+
export var range = function(n) {
|
462
|
+
var ref;
|
463
|
+
return (function() {
|
464
|
+
var results = [];
|
465
|
+
for (var i = 0, ref = n - 1; 0 <= ref ? i <= ref : i >= ref; 0 <= ref ? i++ : i--){ results.push(i); }
|
466
|
+
return results;
|
467
|
+
}).apply(this);
|
468
|
+
};
|