## JavaScript 的 == 條列式比較

The comparison x == y, where x and y are values, produces true or false. Such a comparison is performed as follows:

If Type(x) is the same as Type(y), then
Return the result of performing Strict Equality Comparison x === y.
If x is null and y is undefined, return true.
If x is undefined and y is null, return true.
If Type(x) is Number and Type(y) is String, return the result of the comparison x == ! ToNumber(y).
If Type(x) is String and Type(y) is Number, return the result of the comparison ! ToNumber(x) == y.
If Type(x) is Boolean, return the result of the comparison ! ToNumber(x) == y.
If Type(y) is Boolean, return the result of the comparison x == ! ToNumber(y).
If Type(x) is either String, Number, or Symbol and Type(y) is Object, return the result of the comparison x == ToPrimitive(y).
If Type(x) is Object and Type(y) is either String, Number, or Symbol, return the result of the comparison ToPrimitive(x) == y.
Return false.
{"ft_lang_label":"__label__en","ft_lang_prob":0.55640286,"math_prob":0.9990044,"size":1111,"snap":"2020-34-2020-40","text_gpt3_token_len":371,"char_repetition_ratio":0.19512194,"word_repetition_ratio":0.25287357,"special_character_ratio":0.2547255,"punctuation_ratio":0.15652174,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99554276,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-01T05:29:27Z\",\"WARC-Record-ID\":\"<urn:uuid:2aa943ba-1974-4695-ac08-c4a173ee61e9>\",\"Content-Length\":\"41411\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:79ace602-13f7-438c-8892-571a798a1d14>\",\"WARC-Concurrent-To\":\"<urn:uuid:4f055098-98b3-466f-a832-a0b04e504ad9>\",\"WARC-IP-Address\":\"45.32.85.194\",\"WARC-Target-URI\":\"https://blog.gslin.org/archives/tag/equal/\",\"WARC-Payload-Digest\":\"sha1:BNRX2FP5YT3PUPOJMF56ICWC67MTVWOQ\",\"WARC-Block-Digest\":\"sha1:FOTSUSPE466F2PNQZAFRPT457TMWO4AI\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600402130615.94_warc_CC-MAIN-20201001030529-20201001060529-00670.warc.gz\"}"}