I recently wrote a post on how to extend Lo-Dash with new functions using _.mixin. The Lo-Dash docs have code samples that include adding new functions into their namespace, but what can you do to enhance an existing function? I decided to investigate what patterns could be utilized to add features to existing functions. I […]
↧