typer.grimm0.dev

Thirty seconds. Keep shipping.

Type straight through. Line breaks are visual. `Tab` only jumps leading indentation.

javascript
time 30.0score 0accuracy 100%snippets 0
readyno local best yet
function·collectActiveUsers(users,·cutoff)·{
··const·activeUsers·=·[]

··for·(const·user·of·users)·{
····if·(!user.isOnline·||·user.lastSeenAt·<=·cutoff)·{
······continue
····}

····activeUsers.push(user.name)
··}

··return·activeUsers
}
function·groupPostsByTag(posts)·{
··const·grouped·=·{}

··for·(const·post·of·posts)·{
····for·(const·tag·of·post.tags)·{
······grouped[tag]·??=·[]
······grouped[tag].push(post.slug)
····}
··}

··return·grouped
}

current snippet above, next snippet queued below

typed 0 / 225tab = indent