-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I test the code in README without name, and it also passes.
var items = {
a: {
dep: []
// other properties as needed
},
b: {
dep: ['a']
},
c: {
dep: ['a']
},
d: {
dep: ['c']
},
};
var names = ['d', 'b', 'c', 'a']; // The names of the items you want arranged, need not be all
var results = sequencify(items, names);
// [ 'a', 'c', 'd', 'b' ]
Metadata
Metadata
Assignees
Labels
No labels