mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
66 lines
837 B
JavaScript
66 lines
837 B
JavaScript
// Generated by CoffeeScript 1.11.1
|
|
import 'local-file.coffee';
|
|
|
|
import 'coffee-script';
|
|
|
|
import _ from 'underscore';
|
|
|
|
import * as underscore from 'underscore';
|
|
|
|
import {
|
|
now
|
|
} from 'underscore';
|
|
|
|
import {
|
|
now as currentTimestamp
|
|
} from 'underscore';
|
|
|
|
import {
|
|
first,
|
|
last
|
|
} from 'underscore';
|
|
|
|
import utilityBelt, {
|
|
each
|
|
} from 'underscore';
|
|
|
|
export default Math;
|
|
|
|
export var square = function(x) {
|
|
return x * x;
|
|
};
|
|
|
|
export var Mathematics = (function() {
|
|
function Mathematics() {}
|
|
|
|
Mathematics.prototype.least = function(x, y) {
|
|
if (x < y) {
|
|
return x;
|
|
} else {
|
|
return y;
|
|
}
|
|
};
|
|
|
|
return Mathematics;
|
|
|
|
})();
|
|
|
|
export {
|
|
sqrt
|
|
};
|
|
|
|
export {
|
|
sqrt as squareRoot
|
|
};
|
|
|
|
export {
|
|
Mathematics as default,
|
|
sqrt as squareRoot
|
|
};
|
|
|
|
export * from 'underscore';
|
|
|
|
export {
|
|
max,
|
|
min
|
|
} from 'underscore';
|