* Retrieve the index with given name
(name: string)
| 836 | * Retrieve the index with given name |
| 837 | */ |
| 838 | indexOfName(name: string): number { |
| 839 | for (let i = 0, len = this._store.count(); i < len; i++) { |
| 840 | if (this.getName(i) === name) { |
| 841 | return i; |
| 842 | } |
| 843 | } |
| 844 | return -1; |
| 845 | } |
| 846 | |
| 847 | getRawIndex(idx: number): number { |
| 848 | return this._store.getRawIndex(idx); |
no test coverage detected