function search(index) {
    var data = this.data;
    return loop.call(this, data, 0, data.length - 1, index, this.valpos);
}
Search bootstrap
The function has to be executed in the context of the IndexedArray object