mirror of
https://github.com/esiur/esiur-js.git
synced 2026-04-04 05:58:22 +00:00
Template
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user