logo

NJP

High order function in script include, accessing the context (this)

Posts on SNow adventures · Jun 09, 2020 · article

In the Service-Now script includes (or in Javascript in general), the context of the this in not reachable when using high order function.

This might be obvious for some of you, but it was not for me and I struggled some time to achieve what I wanted in a clean manner. Hence this post.

View original source

http://localhost:1313/blog/high-order-function-in-script-include-accessing-the-context-this/