GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Search e01

One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.

13 results across 6 corpora for String.prototype.substr().

Encyclopedia 1

Comparison of programming languages (string functions)

a built-in trim function in JavaScript 1.8.1 (Firefox 3.5 and later), and the ECMAScript 5 standard. In earlier versions it can be added to the String object's prototype as follows: String.prototype.trim = function() { return this.replace(/^\s+/g, "").replace(/\s+$/g, ""); }; ====Perl==== Perl 5 has no built-in trim function. However, the functionality is commonly achieved using regular expressions. Example: $string

e01 Encyclopedia · CC BY-SA 4.0 · https://en.wikipedia.org/w/index.php?oldid=1377774419

Papers 6

Developer library 6

WebAssembly JavaScript builtins

concat"`](https://github.com/WebAssembly/js-string-builtins/blob/main/proposals/js-string-builtins/Overview.md#wasmjs-string-concat) - : Equivalent to String.prototype.concat(). - [`"wasm:js-string" "charCodeAt"`](https://github.com/WebAssembly/js-string-builtins/blob/main/proposals/js-string-builtins/Overview.md#wasmjs-string-charcodeat) - : Equivalent to String.prototype.charCodeAt(). - [`"wasm:js-string" "code

Solve common JavaScript problems

egation, and how does it work?](/docs/Learn_web_development/Core/Scripting/Event_bubbling#event_delegation) ### Object-oriented JavaScript - [What are object prototypes?](/docs/Learn_web_development/Extensions/Advanced_JavaScript_objects/Object_prototypes) - [How do you add methods to the constructor?](/docs/Learn_web_development/Extensions/Advanced_JavaScript_objects/Object_prototypes#setting_a_prototype) - [How d

Deprecated and obsolete features

mode. - Instead of accessing `arguments` as a property of a function, you should use the arguments object inside function closures. ### Object - The [`Object.prototype.__proto__`](/docs/Web/JavaScript/Reference/Global_Objects/Object/proto) accessors are deprecated. Use [`Object.getPrototypeOf`](/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf) and [`Object.setPrototypeOf`](/docs/Web/JavaScript/Re

RegExp

ld also be used, but because it's not a symbol property, there would be too many false positives.) The places that treat regexes specially include: - [`String.prototype.endsWith()`](/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith), [`startsWith()`](/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith), and [`includes()`](/docs/Web/JavaScript/Reference/Global_Objects/String/includes) throw a

RegExp() constructor

in `core-js`](https://core-js.io/docs/features/ecmascript/string-regexp) - [Regular expressions](/docs/Web/JavaScript/Guide/Regular_expressions) guide - String.prototype.match() - String.prototype.replace()

RegExp.$1, …, RegExp.$9

first nine. You can access all parenthesized substrings through the returned array's indexes. `$1, …, $9` can also be used in the replacement string of String.prototype.replace(), but that's unrelated to the `RegExp.$n` legacy properties. ## Examples ### Using $n with RegExp.prototype.test() The following script uses the RegExp.prototype.test() method to grab a number in a generic string. ```js const str = "Test

JSON results · Services directory