📜  确认 EndingPassed--Javascript 代码示例
📅  最后修改于: 2022-03-11 15:02:09.790000             🧑  作者: Mango
代码示例2
function confirmEnding(str, target) {
return str.slice(-target.length) === target
}
confirmEnding("Bastian", "n");