Version: Smart Feature Phone 2.5

DataStore.name

The name read-only property of the DataStore interface returns the name of the current data store.

Syntax#

myStoreName = store.name;

Value#

A DOMString.

Example#

The following example gets all the data stores on the device called "contacts", then logs the data store name to the console:

navigator.getDataStores('contacts').then(function(stores) {
console.log(stores[0].name);
});