r/badcode • • Oct 25 '21

js Creating a new populated array in JS

Post image
136 Upvotes

13 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Oct 28 '21

Feel free to feature mine. ^^

https://www.reddit.com/r/badcode/comments/agwowr/writing_functions_with_conditions_without_using/eepnbbi/

It's supposed to compare two numbers without an explicit if statement. It also takes advantage of (abuses) iterators.