3

When you see a wrapper function around nothing but another, inbuilt function…

Comments
  • 2
    Not saying it's the case there but this can be valid — if you suspect it'll change later, why not wrap it?

    We often do this for trendy browser APIs that we're worried will change, allows easy changing to different polyfills, new default settings, changed parameters, etc.
  • 0
    @jaylynch I can't remember the exact function, but it was definitely not something that was going to change.
Add Comment