use [].reverse over prototype

This commit is contained in:
Daniel Cousens 2015-09-27 23:36:31 +10:00
parent 5c1c4589c0
commit 0b4c67406f
6 changed files with 7 additions and 8 deletions

View file

@ -70,7 +70,7 @@ Block.prototype.getHash = function () {
}
Block.prototype.getId = function () {
return Array.prototype.reverse.call(this.getHash()).toString('hex')
return [].reverse.call(this.getHash()).toString('hex')
}
Block.prototype.getUTCDate = function () {