したがって、次の 3 つの属性を持つ製品という名前のオブジェクトがあります。
var products = [
{"name":"product1","size":"large","color":"blue","gender":"male"},
{"name":"product2","size":"small","color":"pink","gender":"female"},
{"name":"product3","size":"large","color":"green","gender":"male"},
{"name":"product4","size":"large","color":"yellow","gender":"female"},
{"name":"product5","size":"medium","color":"blue","gender":"female"},
{"name":"product6","size":"large","color":"green","gender":"male"},
{"name":"product7","size":"small","color":"yellow","gender":"male"},
{"name":"product8","size":"medium","color":"red","gender":"female"},
{"name":"product9","size":"large","color":"blue","gender":"male"},
{"name":"product10","size":"small","color":"red","gender":"female"}
];
サイズ、色、性別の選択ボックスが 3 つある場合、これら 3 つをフィルタリングして製品名を取得するにはどうすればよいでしょうか。
javascript で .filter を使用しようとしています。非連想配列で使用する方法を知っています。しかし、連想配列はどうでしょうか。それらをどのように使用しますか?