JavaScript String endsWith Method
Introduction
Introduced in ES6
Syntax
console.log("hello".endsWith("ello")) // true
console.log("hello".endsWith("ello", 5)) // true
Introduced in ES6
console.log("hello".endsWith("ello")) // true
console.log("hello".endsWith("ello", 5)) // true