UNPKG

compare-oriented-cell

Version:

Test if two sets of integers are equal up to an even permutation

11 lines (7 loc) 231 B
'use strict' var compareCells = require('compare-cell') var parity = require('cell-orientation') module.exports = compareOrientedCells function compareOrientedCells(a, b) { return compareCells(a, b) || parity(a) - parity(b) }