use [].reverse over prototype
This commit is contained in:
parent
5c1c4589c0
commit
0b4c67406f
6 changed files with 7 additions and 8 deletions
src
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue