Array.prototype.toReversed

GPTKB entity

Statements (20)
Predicate Object
gptkbp:instanceOf JavaScript method
gptkbp:affiliatedWith Array.prototype
gptkbp:alternativeTo Array.prototype.reverse
gptkbp:arity 0
gptkbp:availableOn modern browsers
gptkbp:category Array method
gptkbp:definedIn gptkb:ECMAScript_2023
gptkbp:describes Returns a new array with the elements in reverse order.
gptkbp:doesNotModify original array
gptkbp:example [1,2,3].toReversed() // [3,2,1]
https://www.w3.org/2000/01/rdf-schema#label Array.prototype.toReversed
gptkbp:introducedIn gptkb:ES2023
gptkbp:isPure true
gptkbp:result new array
gptkbp:sideEffect none
gptkbp:specifies https://tc39.es/ecma262/#sec-array.prototype.toreversed
gptkbp:staticMethod false
gptkbp:throwsOn non-array objects
gptkbp:bfsParent gptkb:ES2023
gptkbp:bfsLayer 5