W3cubDocs

/Web APIs

FileSystemDirectoryHandle: values() method

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The values() method of the FileSystemDirectoryHandle interface returns a new array iterator containing the values for each index in the FileSystemDirectoryHandle object.

Syntax

js

values()

Parameters

None.

Return value

A new Array

Examples

js

const dirHandle = await window.showDirectoryPicker();

for await (const value of dirHandle.values()) {
  console.log(value);
}

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
values 86 86 111 No 72 15.2 No 86 111 61 15.2 14.0

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle/values