gustavohenke/toposort

Empty array of dependents doesn't actually add anything

gustavohenke opened this issue · 0 comments

If the below code is run:

t.add("item", []).sort()

will display an empty array, because there's no items in the deps array. If the deps array is not passed, the item will be added.