Frontmatter
| id | 3696 |
| title | Neo.first() |
| state | Closed |
| labels | enhancement |
| assignees | [] |
| createdAt | Dec 28, 2022, 1:29 PM |
| updatedAt | Jan 2, 2023, 8:41 PM |
| githubUrl | https://github.com/neomjs/neo/issues/3696 |
| author | Dinkh |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 2, 2023, 8:41 PM |

The developer wants to be able to find the first component with certain stats.
@examples Neo.first('button'); => string finds first item with ntype Neo.first({ntype: button, text: 'foo'}) => object result is the first item that matches all key|values
This should be kind of a shortcut for Neo.manager.Component.find(). We only want to return the first item (not an array) and be able to hand over a ntype as string.