From bf86dff4c55c8113f661ea357cb7affade45c936 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Fri, 24 Apr 2026 10:12:56 -0700 Subject: [PATCH] Editorial: remove unhelpful notes in String startsWith/endsWith (#3831) --- spec.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spec.html b/spec.html index 4e800850ef..171c0c63e2 100644 --- a/spec.html +++ b/spec.html @@ -35626,9 +35626,6 @@

String.prototype.endsWith ( _searchString_ [ , _endPosition_ ] )

1. If _substring_ is _searchStr_, return *true*. 1. Return *false*. - -

This method returns *true* if the sequence of code units of _searchString_ converted to a String is the same as the corresponding code units of this object (converted to a String) starting at _endPosition_ - length(_searchString_). Otherwise it returns *false*.

-

Throwing an exception if the first argument is a RegExp is specified in order to allow future editions to define extensions that allow such argument values.

@@ -36215,9 +36212,6 @@

String.prototype.startsWith ( _searchString_ [ , _position_ ] )

1. If _substring_ is _searchStr_, return *true*. 1. Return *false*. - -

This method returns *true* if the sequence of code units of _searchString_ converted to a String is the same as the corresponding code units of this object (converted to a String) starting at index _position_. Otherwise it returns *false*.

-

Throwing an exception if the first argument is a RegExp is specified in order to allow future editions to define extensions that allow such argument values.