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

Specification
File System Standard
# api-filesystemdirectoryhandle-asynciterable

Browser compatibility

BCD tables only load in the browser

See also