(function( factory ) { "use strict"; if ( typeof exports === 'object' ) { // learn how to inject/load other module like jQuery to this module /*module.exports = function (root, $) { if ( ! root ) { // CommonJS environments without a window global must pass a // root. This will give an error otherwise root = window; } if ( ! $ ) { $ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window require('jquery') : require('jquery')( root ); } return factory( $, root, root.document ); };*/ module.exports = factory(); } else { // Browser factory(window); } } (function(window) { "use strict"; var getMax = function(valueArrays) { return valueArrays.map(function(a) { return (a[0]>a[1])?a[0]:a[1]; }); }; if(window) { window.getMax = getMax; } else { return getMax; } }));