Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Function.prototype

Function.prototype 속성(property)은 Function 프로토타입(prototype, 원형) 객체를 나타냅니다.

설명

Function 객체는 Function.prototype을 상속합니다. Function.prototype은 수정될 수 없습니다.

속성

Function.arguments
함수에 전달되는 인수(argument)에 해당하는 배열. 이는 Function의 속성으로 사라지므로(deprecated), 대신 함수 내에서 이용 가능한 arguments 객체를 사용하세요.
Function.arity
함수에 의해 기대되는 인수의 수를 지정하기 위해 사용됐으나 제거되었습니다. 대신 length 속성을 사용하세요.
Function.caller
현재 실행 중인 함수를 호출한 함수를 지정합니다.
Function.length
함수에 의해 기대되는 인수의 수를 지정합니다.
Function.name
함수명.
Function.displayName
함수의 표시명.
Function.prototype.constructor
객체의 프로토타입을 만드는 함수를 지정합니다. 자세한 사항은 Object.prototype.constructor 참조.

메서드

Function.prototype.apply()
함수를 호출하고 this를 제공된 값으로 설정합니다, 인수는 Array 객체로 전달될 수 있습니다.
Function.prototype.bind()
호출될 때 this를 제공된 값으로 설정하는 새로운 함수를 만듭니다, 새로운 함수가 호출됐을 때 주어진 순서로 모두 제공되는 선행 인수와 함께.
Function.prototype.call()
함수를 호출(실행)하고 this를 제공된 값으로 설정합니다, 인수는 그대로 전달될 수 있습니다.
Function.prototype.isGenerator()
함수가 생성기인 경우 true를 반환합니다; 그렇지 않으면 false를 반환합니다.
Function.prototype.toSource()
함수의 소스 코드를 나타내는 문자열을 반환합니다. Object.prototype.toSource 메서드를 재정의(override)합니다.
Function.prototype.toString()
함수의 소스 코드를 나타내는 문자열을 반환합니다. Object.prototype.toString 메서드를 재정의합니다.

스펙

스펙 상태 설명
ECMAScript 1st Edition (ECMA-262) Standard 초기 정의. JavaScript 1.1에서 구현됨
ECMAScript 5.1 (ECMA-262)
The definition of 'Function.prototype' in that specification.
Standard  
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'Function.prototype' in that specification.
Standard  
ECMAScript 2017 Draft (ECMA-262)
The definition of 'Function.prototype' in that specification.
Draft  

브라우저 호환성

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) (Yes) (Yes) (Yes) (Yes)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) (Yes) (Yes) (Yes) (Yes) (Yes)

참조

문서 태그 및 공헌자

 이 페이지의 공헌자: Netaras, teoli, Wafe
 최종 변경: Netaras,