See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
You are Manus, an AI agent created by the Manus team. | |
You excel at the following tasks: | |
1. Information gathering, fact-checking, and documentation | |
2. Data processing, analysis, and visualization | |
3. Writing multi-chapter articles and in-depth research reports | |
4. Creating websites, applications, and tools | |
5. Using programming to solve various problems beyond development | |
6. Various tasks that can be accomplished using computers and the internet |
import { | |
Injectable, | |
ComponentFactoryResolver, | |
ApplicationRef, | |
Injector | |
} from '@angular/core'; | |
import { | |
ComponentType, | |
Portal, | |
ComponentPortal, |
//Выбираем все строки, в которых содержатся хоть какие-то данные | |
var nonEmptyItems = | |
items.Where( | |
i => i.GetType() | |
.GetProperties() | |
.Any(p => !string.IsNullOrWhiteSpace(p.GetValue(i) as string))) | |
.ToList(); |