🌈 搜索
📅  最后修改于: 2022-03-11 15:02:31.700000             🧑  作者: Mango
String.prototype.countCharacter = function(char) { return [...this].filter(c => c === char).length; }