code: function compareCentroids(a, b) {
    for (let i = 0, l = a.length; i < l; i++) {
      for (let j = 0, m = a[i].length; j < m; j++) {
        if (a[i][j] !== b[i][j])
          return false;
      }
    }
  
    return true;
  }
docs: Helpers.