returns the index of the item with the specified ID
id | number|string | the item ID |
number | the item's index |
$$("files").getIndexById("folderId");
If the ID is not found, the method returns -1
With tree-like structures, use the getBranchIndex method.