Unfortunately, I don\'t have JQuery or Underscore, just pure javascript (IE9 compatible).
I\'m wanting the equivalent of SelectMany() from LINQ functionality.
For those a while later, understanding javascript but still want a simple Typed SelectMany method in Typescript:
function selectMany(input: TIn[], selectListFn: (t: TIn) => TOut[]): TOut[] { return input.reduce((out, inx) => { out.push(...selectListFn(inx)); return out; }, new Array()); }