crypto: use the coffee shorthand for prototype
This commit is contained in:
parent
b66e7aa3ee
commit
226afdc13a
|
@ -6,7 +6,7 @@ fromUtf8Bytes = (bytes) ->
|
||||||
new TextDecoder 'utf-8'
|
new TextDecoder 'utf-8'
|
||||||
.decode bytes
|
.decode bytes
|
||||||
|
|
||||||
hex = (buf) -> (Array.prototype.map.call new Uint8Array(buf),
|
hex = (buf) -> (Array::map.call new Uint8Array(buf),
|
||||||
(x) => ('00' + x.toString 16).slice(-2)).join ''
|
(x) => ('00' + x.toString 16).slice(-2)).join ''
|
||||||
|
|
||||||
fromHex = (str) ->
|
fromHex = (str) ->
|
||||||
|
|
Loading…
Reference in a new issue