Skip to content

Instantly share code, notes, and snippets.

View edi's full-sized avatar
🏆
HackerOne #672 session winner

Edi Duluman edi

🏆
HackerOne #672 session winner
View GitHub Profile
@edi
edi / utils.js
Created July 30, 2019 06:45
successor method
export function successor(prefix) {
let limit = prefix;
while ( limit.length > 0 ) {
const index = limit.length - 1;
if ( limit[index] === '\xff' )
limit = limit.slice(0, -1)