2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-04-04 05:58:22 +00:00
This commit is contained in:
2022-09-18 23:58:24 +03:00
parent 735a19cda3
commit b198101e2d
5 changed files with 34 additions and 44 deletions

View File

@@ -76,6 +76,12 @@ export default class AutoList extends IEventHandler
return this.list[index];
}
first(selector){
for(var el of this.list)
if (selector(el))
return el;
}
remove(value)
{
this.removeAt(this.list.indexOf(value));