Frontmatter
| id | 6280 |
| title | Neo.assignToNs() |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jan 24, 2025, 1:19 AM |
| updatedAt | Jan 24, 2025, 3:18 PM |
| githubUrl | https://github.com/neomjs/neo/issues/6280 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 24, 2025, 3:18 PM |
this method would be nice to have.
i am using code like this in multiple spots:
let nsArray = fieldName.split('.'); fieldName = nsArray.pop(); scope = Neo.ns(nsArray, true, data); scope[fieldName] = valuethe method should work like:
Neo.assignToNs('annotations.selected', false, record)params: key, value, scope