You are given an array items, where each items[i] = [type_i, color_i, name_i] describes the type, color, and name of the ruleKey and ruleValue.
The
• ruleKey == "type" and ruleValue == type_i
• ruleKey == "color" and ruleValue == color_i
• ruleKey == "name" and ruleValue == name_i
Return the total count of items that match the specified rule.
Constraints:
items.length
type_i.length, color_i.length, name_i.length, ruleValue.length
ruleKey is equal to either "type", "color", or "name".
All strings consist only of lowercase letters.
You are given an array items, where each items[i] = [type_i, color_i, name_i] describes the type, color, and name of the ruleKey and ruleValue.
The
• ruleKey == "type" and ruleValue == type_i
• ruleKey == "color" and ruleValue == color_i
• ruleKey == "name" and ruleValue == name_i
Return the total count of items that match the specified rule.
Constraints:
items.length
type_i.length, color_i.length, name_i.length, ruleValue.length
ruleKey is equal to either "type", "color", or "name".
All strings consist only of lowercase letters.