mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:55:55 +00:00
10 lines
238 B
JavaScript
10 lines
238 B
JavaScript
// arrayInstance.at should have the following effects:
|
|
// - read on arg0
|
|
// - read on receiver
|
|
// - mutate on lvalue
|
|
function ArrayAtTest(props) {
|
|
const arr = [foo(props.x)];
|
|
const result = arr.at(bar(props.y));
|
|
return result;
|
|
}
|