Function.prototype.toSource()

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

* Some parts of this feature may have varying levels of support.

비표준: 이 기능은 비표준이므로 실제 프로덕션에서 사용하지 마세요. 모든 사용자 환경에서 작동하지 않을 수 도 있으며, 미래에 호환성 문제가 생길 수 있습니다.

toSource() 메소드는 객체의 소스 코드를 나타내는 스트링을 반환합니다.

구문

js
    function.toSource();

반환 값

객체의 소스 코드를 나타내는 스트링.

설명

toSource 메소드는 다음 값들을 반환합니다.

  • 내장