Skip to content

Commit

Permalink
Update jpure.js
Browse files Browse the repository at this point in the history
great changes
  • Loading branch information
Buggem authored Jul 18, 2022
1 parent b07845d commit 6e2dae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jpure.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var jpure = {
},
"maximise": function(string) {
// Minimise and maximise functions explained is on line 5 and so on.
return str.split('') // split in single chars
return string.split('') // split in single chars
.map(c => c.charCodeAt(0) // get the UTF-16 code (10 base)
.toString(2)) // transform it back to a string (2 base)
.join(' ') // make single string from array
Expand Down

0 comments on commit 6e2dae8

Please sign in to comment.