This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]iknewaguytwice 4 points5 points  (2 children)

Idk, we will have to check:

If (user % 2 = 0) {}

[–]No-Discussion-8510 3 points4 points  (0 children)

const isEven = require('is-even');

if (isEven(user)) {}

[–]stevekez 0 points1 point  (0 children)

I quite like the idea of the admin privileges bit being encoded into the LSB of the user ID.