From 95aca4b4d8fa62815d4bd412fff1a364f842814a Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 29 Apr 2021 16:16:42 -0700 Subject: remove retired locales (#699) --- .../reference/global_objects/array/keys/index.html | 82 ---------------------- 1 file changed, 82 deletions(-) delete mode 100644 files/uk/web/javascript/reference/global_objects/array/keys/index.html (limited to 'files/uk/web/javascript/reference/global_objects/array/keys') diff --git a/files/uk/web/javascript/reference/global_objects/array/keys/index.html b/files/uk/web/javascript/reference/global_objects/array/keys/index.html deleted file mode 100644 index d631dea894..0000000000 --- a/files/uk/web/javascript/reference/global_objects/array/keys/index.html +++ /dev/null @@ -1,82 +0,0 @@ ---- -title: Array.prototype.keys() -slug: Web/JavaScript/Reference/Global_Objects/Array/keys -tags: - - ECMAScript 2015 - - JavaScript - - Method - - Prototype - - Довідка - - Масив -translation_of: Web/JavaScript/Reference/Global_Objects/Array/keys ---- -
{{JSRef}}
- -

Метод keys() вертає новий об'єкт перебирача ключів (індексів) масиву.

- - - -

{{EmbedInteractiveExample("pages/js/array-keys.html")}}

- - - - - -

Синтаксис

- -
arr.keys()
- -

Вертає

- -

Новий об'єкт перебирача {{jsxref("Array")}}.

- -

Приклади

- -

Перебирач ключів розрідженого масиву не оминає прогалин

- -
var arr = ['a', , 'c'];
-var sparseKeys = Object.keys(arr);
-var denseKeys = [...arr.keys()];
-console.log(sparseKeys);  // виводить ['0', '2']
-console.log(denseKeys);   // виводить [0, 1, 2]
-
- -

Специфікації

- - - - - - - - - - - - - - - - - - - -
СпецифікаціяСтатусКоментар
{{SpecName('ES2015', '#sec-array.prototype.keys', 'Array.prototype.keys')}}{{Spec2('ES2015')}}Початкова виознака.
{{SpecName('ESDraft', '#sec-array.prototype.keys', 'Array.prototype.keys')}}{{Spec2('ESDraft')}}
- -

Підтримка веб-переглядачами

- -
- - -

{{Compat("javascript.builtins.Array.keys")}}

-
- -

Див. також

- - -- cgit v1.2.3-54-g00ecf