Nodejs Utililty Methods Array Matrix

List of utility methods to do Array Matrix

Description

The list of methods to do Array Matrix are organized into topic(s).

Method

printMatrix()
Array.prototype.printMatrix = function() {
  let return_string = '';
  for (row of this) {
    return_string += '[';
    return_string += row.join(', ');
    return_string += "] \n";
  console.log(return_string);
printMatrix()
Array.prototype.printMatrix = function() {
  var output = '';
  for (var i = 0; i < this.length; i++) {
    if (i != 0 && i % 5 == 0) {
      output += '\n';
    output += (this[i] + ',             ').substring(0, 5);
  console.log(output);
...