From 8d1313c84cc82d81363ed62b75baedb9a65ff2e3 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:08:24 +0800 Subject: remove font tag in zh-CN --- .../web/javascript/reference/global_objects/object/is/index.html | 4 ++-- .../web/javascript/reference/global_objects/object/values/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/object') diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html index f9f8f0a2fd..9c3aff1abd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/is/index.html @@ -14,7 +14,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/is

Object.is() 方法判断两个值是否为同一个值

-

语法

+

语法

Object.is(value1, value2);
@@ -119,7 +119,7 @@ Object.is(-0, -0); // true Object.is(NaN, 0/0); // true -

规范

+

规范

diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/values/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/values/index.html index d744ebcb13..12dd243202 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/values/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/values/index.html @@ -57,7 +57,7 @@ console.log(Object.values('foo')); // ['f', 'o', 'o']

Polyfill 

-

如果要 Object.values兼容不支持它的旧环境,可在 tc39/proposal-object-values-entries 或 es-shims/Object.values 中找到 Polyfill 。

+

如果要 Object.values兼容不支持它的旧环境,可在 tc39/proposal-object-values-entries 或 es-shims/Object.values 中找到 Polyfill 。

根据Object.keys()的Polyfill仿写一个:

-- cgit v1.2.3-54-g00ecf