You are viewing a single comment's thread. Return to all comments →
function matchingStrings(strings: string[], queries: string[]): number[] { return queries.map((q: string): number => strings.filter((s: string) => q === s).length) }
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →