add(obj, index, parent)

adds a new item into a certain branch

Parameters

  • obj - item object
    • object
  • index - the position of a new item in the branch (the last item by default) (optional)
    • dimension
  • parent - the id of branch where the item needs being added (the top level by default) (optional)
    • string,dimension

Returns

method doesn't return any data