Computes the parity of a permutation
npm install permutation-paritypermutation-parity
==================
Computes the parity of a permutation.
``javascript
var sgn = require("permutation-parity")
console.log(sgn([0, 1, 2]), sgn([0, 2, 1]))
`
``
npm install permutation-parity
#### require("permutation-parity")(p)
Determines the sign of a permutation
* p is a permutation
Returns The sign of the permutation:
* 1 if p is odd-1
* if p is even0
* if p` is not a permutation