lib/sbm.js
function(sbmA, sbmB) {
    // check size
    if (sbmA.x !== sbmB.x || sbmA.y !== sbmB.y) {
      return false
    }

    // check
    return _.every(sbmA.data, function (line, idx) {
      return _.isEqual(line.sort(), sbmB.data[idx].sort())
    })
  }
function(sbmA, sbmB) {
    // check size
    if (sbmA.x !== sbmB.x || sbmA.y !== sbmB.y) {
      return false
    }

    // check
    return _.every(sbmA.data, function (line, idx) {
      return _.isEqual(line.sort(), sbmB.data[idx].sort())
    })
  }
function ( sbmA , sbmB ) { // check size if ( sbmA . x !== sbmB . x || sbmA . y !== sbmB . y ) { return false } // check return _ . every ( sbmA . data , function ( line , idx ) { return _ . isEqual ( line . sort ( ) , sbmB . data [ idx ] . sort ( ) ) } ) }
are both matrices equal ?
are both matrices equal ?