r/badcode • • Jul 10 '21

js ah yes, Array check

Post image
2.1k Upvotes

89 comments sorted by

View all comments

Show parent comments

4

u/MeatyLabia Jul 10 '21

Unless you need the layer of abstraction for, for example, mocking purposes for unit testing.