mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
31 lines
535 B
JavaScript
31 lines
535 B
JavaScript
/**
|
|
* CommonJS module exports
|
|
*/
|
|
if ((typeof module !== 'undefined') && (typeof module.exports !== 'undefined')) {
|
|
module.exports = math;
|
|
}
|
|
if (typeof exports !== 'undefined') {
|
|
exports = math;
|
|
}
|
|
|
|
/**
|
|
* AMD module exports
|
|
*/
|
|
if (typeof(require) !== 'undefined' && typeof(define) !== 'undefined') {
|
|
define(function () {
|
|
return math;
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Browser exports
|
|
*/
|
|
if (typeof(window) !== 'undefined') {
|
|
if (window['math']) {
|
|
object.deepExtend(window['math'], math);
|
|
}
|
|
else {
|
|
window['math'] = math;
|
|
}
|
|
}
|