Entity
- Last Updated: September 1, 2021
- 1 minute read
- Corticon.js
- Documentation
Corticon.js's Entity operators are as follows:
| Name and Syntax | Returns | Description | |
|---|---|---|---|
| New | |||
<Entity> .new
[<Expression1>,…] |
Entity | Creates a new instance of <Entity>. Expressions (optional to assign attribute values) in
square brackets [..] must be written in the form: attribute = value. |
|
| New Unique | |||
<Entity> .newUnique
[<Expression1>,…] |
Entity | Creates a new instance of <Entity> only if the instance created is unique as defined by
optional <Expression1>,… |
|
| Clone | |||
<Entity>.clone
[<Expression1>,…] |
Entity | Creates a new instance of <Entity> with the same attributes and their respective values.
Expressions (optional to override attribute values) in square brackets [..]
must be written in the form: attribute = value. |
|
| Remove | |||
< Entity>.remove
[(true)|(false)] |
Entity | Deletes the entity from memory and from the resultant JSON
document. Children can be removed as well when set to (true, or retained after moving to root (false). Blank or no value defaults to true. |
|