LeetCodeJewels and StonesJewels and StonesEasyHash TableStringSolution export function numJewelsInStones(jewels: string, stones: string): number { const jewel = new Set(jewels); return [...stones].filter((stone) => jewel.has(stone)).length; }LeetCodeJewels and Stoneshttps://leetcode.com/problems/jewels-and-stones