Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const abs = (x) => {
- const signed = ((x << 31) % 2 != 0);
- return (x ^ -signed) + signed;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement