From 4c2e40e7a2fc5e40d4962afad0ea286dfb963da7 Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 12 Mar 2021 22:47:06 +0800 Subject: [PATCH] perf: use `===` instead of `==` --- .internal/baseToString.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.internal/baseToString.js b/.internal/baseToString.js index 56822d9ba8..e472f11c7e 100644 --- a/.internal/baseToString.js +++ b/.internal/baseToString.js @@ -27,7 +27,7 @@ function baseToString(value) { return symbolToString ? symbolToString.call(value) : '' } const result = `${value}` - return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result + return (result === '0' && (1 / value) === -INFINITY) ? '-0' : result } export default baseToString pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy