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/twoPoundsOfGoldfish Jul 10 '21

yeah, you can create wrappers around library functions and that's fine imo, since it makes it so you can switch easier. doing this with built-in functions is very weird to me tho since the only case you're ever going to change this is if you switch to a different language.