function getStorage(type = "local") {
	switch (type) {
		case "local":
			return save;

		default:
			throw new Error("storage type " + type + " not supported");
	}
}
return the device storage
@memberof device
@see save
@param {string} [type="local"]
@returns {object} a reference to the device storage