public search(name: string): void {
if (name.trim().length > 0) {
this.employees = this.employeeSource.filter(x => x.name.toLowerCase().indexOf(name.trim().toLowerCase()) >= 0);
}
}
Every Programming Best Practice, Interview Question, Algorithms
public search(name: string): void {
if (name.trim().length > 0) {
this.employees = this.employeeSource.filter(x => x.name.toLowerCase().indexOf(name.trim().toLowerCase()) >= 0);
}
}
© Best Way to Code 2011 | Design by Blogger Hack Supported by PBT
0 comments:
Post a Comment