<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1>型 <code class="JS" xml:lang="en">Boolean</code>、ブール値 (JavaScript)</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> </p><blockquote><p>A <dfn xml:lang="en">boolean value</dfn> is a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">member</anchor> of the <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">type</anchor> <dfn xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Boolean</anchor></dfn>
and is one of two unique <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">values</anchor>, <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">true</anchor></code> and <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">false</anchor></code>.</p></blockquote><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><cite xmlns="http://www.w3.org/1999/xhtml">ECMAScript Language Specification (HTML version)</cite> (<time xmlns="http://www.w3.org/1999/xhtml">2009-04-03 04:43:48 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://bclary.com/2004/11/07/#a-4.3.13">http://bclary.com/2004/11/07/#a-4.3.13</anchor-external></comment-p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> </p><blockquote><p>The <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">type</anchor> <dfn xml:lang="en"><code class="JS" xml:lang="en">Boolean</code></dfn> represents a logical entity and consists of exactly two unique <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">values</anchor>.
One is called <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">true</anchor></code> and the other is called <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">false</anchor></code>.</p></blockquote><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><cite xmlns="http://www.w3.org/1999/xhtml">ECMAScript Language Specification (HTML version)</cite> (<time xmlns="http://www.w3.org/1999/xhtml">2009-04-03 04:43:48 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://bclary.com/2004/11/07/#a-4.3.14">http://bclary.com/2004/11/07/#a-4.3.14</anchor-external></comment-p></section><section><h1><code class="JS" xml:lang="en">Boolean</code> オブジェクト (JavaScript)</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> </p><blockquote><p>A <dfn xml:lang="en">Boolean object</dfn> is a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">member</anchor> of the <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">type</anchor> <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Object</anchor></code> and is an
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">instance</anchor> of the <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">built-in</anchor> <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Boolean</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">object</anchor>. That is, a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Boolean object</anchor>
is created by using the <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Boolean</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">constructor</anchor> in a <code class="JS" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">new</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">expression</anchor>,
supplying a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">boolean</anchor> as an <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">argument</anchor>. The resulting <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">object</anchor> has an implicit (unnamed) <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">property</anchor>
that is the <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">boolean</anchor>. A <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Boolean object</anchor> can be coerced to a <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">boolean value</anchor>.</p></blockquote><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:">
<cite xmlns="http://www.w3.org/1999/xhtml">ECMAScript Language Specification (HTML version)</cite> (<time xmlns="http://www.w3.org/1999/xhtml">2009-04-03 04:43:48 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://bclary.com/2004/11/07/#a-4.3.15">http://bclary.com/2004/11/07/#a-4.3.15</anchor-external></comment-p></section><section><h1>メモ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <cite xml:lang="en">Bug 28477 – Warn against boolean arguments defaulting to true</cite>
(<time>2015-04-14 12:39:48 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://www.w3.org/Bugs/Public/show_bug.cgi?id=28477">https://www.w3.org/Bugs/Public/show_bug.cgi?id=28477</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> <cite xml:lang="en">Write structured clone algorithm in terms of ECMAScript · whatwg/html@bfb960c</cite>
(<time>2016-03-02 16:44:53 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/whatwg/html/commit/bfb960c938580c95e77365e614218b952f96375b">https://github.com/whatwg/html/commit/bfb960c938580c95e77365e614218b952f96375b</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <cite xml:lang="en">Breaking: refactor structured clone into serialize/deserialize</cite>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">domenic</anchor>著, <time>2017-03-21 06:09:33 +09:00</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/whatwg/html/commit/97d644c97335956610a31e8ad98d1a388c063e84">https://github.com/whatwg/html/commit/97d644c97335956610a31e8ad98d1a388c063e84</anchor-external></p></section></body></html>