NATIVE

settings_applicationsObject  >   settings_applicationsReflect

NATIVE

Editing
  • account_tree
  • bug_report

Objectinstanceconstruct(Functiontarget, like-arrayargumentsList, ObjectnewTarget])

new 연산자와 비슷한 기능을 가진 함수이다. 새로운 인스턴스를 반환한다.

구문

형식
Reflect.construct(target, argumentsList[, newTarget])

매개 변수

Functiontarget필수

호출할 대상 함수를 지정한다.

like-arrayargumentsList필수

호출할 대상 함수에게 전달될 지정된 인수를 갖는 유사 배열 객체이다.

ObjectnewTarget선택

new.target 연산자의 값을 나타낸다.

반환

Objectinstance

지정된 함수(target)에 의해서 생성된 인스턴스를 반환한다.

버전 명세

ECMAScript 2024(15th Edition)
#sec-reflect.construct

지원 웹브라우저