DEV Community

Discussion on: JavaScript's Forgotten Keyword (with)

Collapse
 
conradsollitt profile image
Conrad Sollitt

An example of the one use case I can think of is for simple templating. For example Underscore uses it on the template() function which can be called from modern JS:

underscorejs.org/docs/underscore-e...

Personally I've used it only 1 time I remember after doing JS for 20+ years and it was to create a templating feature for Web Components.