office-scripts-docs icon indicating copy to clipboard operation
office-scripts-docs copied to clipboard

Small typo in description of specific definition of `String.prototype.replace()`

Open aniballpxess opened this issue 3 months ago • 0 comments

Article URL Couldn't find a reference in the online docs - it's proably a typo outside your scope or comming from the fork OfficeScript originated from.

Describe the problem In the description of the function for the first parameter it reads "A object can [...]" when it should read "An object that can [...]"

Screenshots

Image

My local Excel version (in case it's needed)

Image

Where I found the typo

Image

Same description fixed in my TypeScript description of the function (es2015)

Image

Funny bit - It's still wrong (but for another definition of the function) in the same Typescript docs

  • First one is the same function as the one reported here
  • Second one is the other definition of the function that still has the typo

aniballpxess avatar Oct 28 '25 12:10 aniballpxess