Skip to content

What's the name stand for? #4

@popomore

Description

@popomore

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions