Statements (56)
Predicate | Object |
---|---|
gptkbp:instance_of |
gptkb:Footballer
|
gptkbp:bfsLayer |
3
|
gptkbp:bfsParent |
gptkb:Library
gptkb:superhero |
gptkbp:default_web_browser |
Supported in modern browsers.
|
gptkbp:error_handling |
Returns undefined for out-of-bounds indices.
|
gptkbp:example |
'hello'.at(-1) returns 'o'.
'hello'.at(1) returns 'e'. 'hello'.at(10) returns undefined. |
gptkbp:formulation |
str.at(index)
|
gptkbp:has_color |
Supports negative integers for indexing.
|
https://www.w3.org/2000/01/rdf-schema#label |
String.prototype.at
|
gptkbp:impact |
Improves readability for accessing string characters.
|
gptkbp:introduced |
ECMA Script 2022 (E S13)
|
gptkbp:is_compared_to |
Similar to String.prototype.char At but with negative indexing.
|
gptkbp:is_described_as |
Returns the character at a specified index in a string.
|
gptkbp:is_opposed_by |
Use String.prototype.slice for similar functionality.
|
gptkbp:is_supported_by |
Older browsers like Internet Explorer.
|
gptkbp:modifications |
Part of the ECMA Script proposal for string methods.
|
gptkbp:orbital_period |
gptkb:stock_market_index
|
gptkbp:part_of |
String prototype.
|
gptkbp:performance |
Generally efficient for string access.
|
gptkbp:provides_information_on |
gptkb:musician
|
gptkbp:regulatory_compliance |
Follows ECMA Script specifications.
|
gptkbp:related_to |
String.prototype.concat.
String.prototype.ends With. String.prototype.includes. String.prototype.index Of. String.prototype.last Index Of. String.prototype.locale Compare. String.prototype.match. String.prototype.normalize. String.prototype.pad End. String.prototype.pad Start. String.prototype.repeat. String.prototype.replace All. String.prototype.replace. String.prototype.search. String.prototype.slice. String.prototype.split. String.prototype.starts With. String.prototype.substring. String.prototype.to Locale Lower Case. String.prototype.to Locale Upper Case. String.prototype.to Lower Case. String.prototype.to Upper Case. String.prototype.trim. String.prototype.value Of. |
gptkbp:return_policy |
String or undefined.
|
gptkbp:supply_chain |
Can be used in method chaining.
|
gptkbp:technique |
String.prototype.char At
String.prototype.char Code At |
gptkbp:type |
String method.
|
gptkbp:use_case |
Accessing characters from the end of a string.
|
gptkbp:used_in |
String manipulation libraries.
Useful in string manipulation and parsing. |