1. Home
  2. Javascript
  3. String ends with
#javascript#string#es6

Check if the string ends with the given text.

let title = 'Section introduction';
title.endsWith('duction') // Returns true
copy
Full Javascript cheatsheet
Sitemap Git repository