You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't tried this, but I notice that you have some double quotes in there. Not sure what that is about...shouldn't it be: where("$.indexOf(" + parameterName + ") !== -1") ?
I looked at the typescript definitions and if I want to use the "$." syntax all I have to do is
add the following typing.
select(selector: string): IEnumerable; in addition to
select(selector: (element: T, index: number) => TResult): IEnumerable;
Like doing this
Enumerable.from(dataVals).where("$.indexOf("" + parameterName + "") !== -1").singleOrDefault("", "$").replace(/+/g, " ").split("=")[1];
instead of doing
return Enumerable.from(dataVals).where(p=> p.indexOf(parameterName) !== -1).singleOrDefault().replace(/+/g, " ").split("=")[1];
for most cases I can rewrite but I have a few specific that it is easier to use the string selector
Thanks
The text was updated successfully, but these errors were encountered: