String.prototype.replace All
GPTKB entity
Statements (23)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:Footballer
|
gptkbp:bfsLayer |
3
|
gptkbp:bfsParent |
gptkb:Library
gptkb:superhero |
gptkbp:case_types |
Yes, it is case-sensitive.
|
gptkbp:color |
String or Reg Exp
|
gptkbp:damage |
Does not modify the original string.
|
gptkbp:error_handling |
Throws a Type Error if search Value is null or undefined.
|
gptkbp:example |
'hello world'.replace All('world', 'there') returns 'hello there'.
|
gptkbp:formulation |
replace All(search Value, replace Value)
|
https://www.w3.org/2000/01/rdf-schema#label |
String.prototype.replace All
|
gptkbp:introduced |
ECMA Script 2021 (E S12)
|
gptkbp:is_compatible_with |
Supported in modern browsers and Node.js.
|
gptkbp:is_described_as |
Returns a new string with all matches of a pattern replaced by a replacement.
|
gptkbp:is_opposed_by |
Use replace with a global regex for older environments.
|
gptkbp:orbital_period |
replace Value
search Value |
gptkbp:performance |
More efficient than using replace with a global regex.
|
gptkbp:provides_information_on |
gptkb:musician
|
gptkbp:supply_chain |
Can be chained with other string methods.
|
gptkbp:technique |
gptkb:String.prototype.replace
|
gptkbp:type |
String method
|
gptkbp:uses |
Used to replace all occurrences of a substring.
|