Here is a basic example of a wrapper method, I am writing a method that just provides an alternative way of using an method that all ready exists.
In many respects this might appear to be silly and pointless, but there is a methods to the madness in some cases. If I where to expand this single method into a lengthly framework of hundreds of methods, it might still make sense to do something like this even if it is just for the sake of consistency.
When I looked over a late version of lodash (4.17.15) as of this writing at least, I have come across the use of and internal baseEach method. This base for each method looks like this.
What is going on here is a bunch of native array and string methods are just being flat out right referenced from the lodash prototype. In other worlds lodash is not providing any actually functionality with some of these methods it is just wrapping native ones. In the process of doing so it is providing a different interface for using them, but if you are using lodash for the so called safely net argument I would say that this more or less puts that to rest. So if you want to have a safety net of sorts it is not just a question of using lodash, it is also a question of what version to use as this will break on certin old browsers.