Statements (17)
Predicate | Object |
---|---|
gptkbp:instanceOf |
JavaScript method
|
gptkbp:affiliatedWith |
Array.prototype
|
gptkbp:canBe |
true
|
gptkbp:definedIn |
gptkb:ECMAScript_2023
|
gptkbp:enumerable |
false
|
gptkbp:example |
[1,2,3].with(1, 4) // [1,4,3]
|
https://www.w3.org/2000/01/rdf-schema#label |
Array.prototype.with
|
gptkbp:immutable |
true
|
gptkbp:introducedIn |
gptkb:ES2023
|
gptkbp:parameter |
index, value
|
gptkbp:purpose |
returns a new array with an element replaced at a given index
|
gptkbp:result |
new array
|
gptkbp:staticMethod |
false
|
gptkbp:throws |
RangeError if index is out of bounds
|
gptkbp:writable |
true
|
gptkbp:bfsParent |
gptkb:ES2023
|
gptkbp:bfsLayer |
5
|