Boolean() 생성자

Boolean() 생성자는 Boolean 객체를 생성할 때 사용합니다.

구문

new Boolean([value])

매개변수

value Optional
Boolean 객체의 초깃값.

명세

Specification
ECMAScript (ECMA-262)
The definition of 'Boolean constructor' in that specification.

브라우저 호환성

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
Boolean() constructorChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 3Opera Full support 4Safari Full support 1WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support 10.1Safari iOS Full support 1Samsung Internet Android Full support 1.0nodejs Full support 0.1.100

Legend

Full support  
Full support

같이 보기