I looked through the lodash filter documentation and it is unclear if the third parameter is context.
I am using the cytoscape (dagre) plugin and it seems to pass this as 3 arguments. When I pause execution until the filter method is called, this determined. But inside the call to this there is undefined.
I looked through the underscore filter documentation and it seems the third argument is being considered context. So I guess that the plugin originally used the underscore, and then maybe changed to lodash. The project I'm working on uses lodash.
I cannot understand why this is null at this point of my can. This may be project specific, but I just want to be sure of the third lodash filter parameter.
Is the lodash filter definition exactly the same as the underscore filter? This is not like documentation.
source share