L
L
LoonTiG2016-05-17 22:39:23
JavaScript
LoonTiG, 2016-05-17 22:39:23

What does [0] mean?

return crypto.createHash('sha256').update(s).digest('binary')[0];

Node code
What does the index at the end mean?
(s - string)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
One Miay, 2016-05-17
@Miay

Return the first character of the hashed string.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question