Introduction
Introduced in ES6
Syntax
console.log('hello'.endsWith('ello')) // true
console.log('hello'.endsWith('ello', 5)) // true
Nov 12, 20201 min read
Introduced in ES6
console.log('hello'.endsWith('ello')) // true
console.log('hello'.endsWith('ello', 5)) // true