string ends with
Check if the string ends with the given text.
let title = 'Section introduction';
title.endsWith('duction') // Returns true
copy
Check if the string ends with the given text.
let title = 'Section introduction';
title.endsWith('duction') // Returns true
copy