# Dexie.fakeAutoComplete()

Helps IDE know how you will call your callback.

#### Sample

```javascript
function callMeBack (callback) {
    Dexie.fakeAutoComplete(function() {
        callback ([new Date()]);
    });
}
```

Then, in your IDE, you write:

```javascript
callMeBack (function (a) {
    a._  // Here the IDE will know that a is an array of Date objects and autoComplete array methods as you type
});
```

#### How it works

The function simply calls setTimeout(yourFunction) and then immediately calls clearTimeout(handle).

#### Performance implications

Doing a loop of 100,000 calls to fakeAutoComplete() will result in the same time consumption as setting a property to an object twice. It is extremely fast.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dexiejs.typogram.co/dexie/dexie.fakeautocomplete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
