Regarding Nadav's point, here's a real world use case:

  https://github.com/khs4473/JiaDOM/blob/master/src/DOMSet.js#L28-44

The function "_manip" returns a function that is parameterized by the input
string.

  https://github.com/khs4473/JiaDOM/blob/master/src/DOMSet.js#L387-403

In the "class" definition, the "_manip" function is used to concisely
generate a set of methods.

kevin
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to