string.endsWith
const str = '๊ณ ์์ด๋ค์ ์ต๊ณ ์!';
str.endsWith('์ต๊ณ ์', 9); // true
str.endsWith('์ต๊ณ ์', 8); // false
str.endsWith('!'); // true
str.endsWith('!', 10); // true
str.endsWith('!', 11); // true
str.endsWith('?'); // falseSyntax
str.endsWith(searchString[, lenght]);Parameters
Return value
Description
Polyfill
Last updated