Web features explorer

String startsWith() and endsWith()

Widely available
Tags: js Groups: Strings Primitive types JavaScript

The startsWith() and endsWith() methods of strings returns whether a search string appears at the beginning or end of the provided string.

Compatibility

Specifications

BCD data