Skip to content

Instantly share code, notes, and snippets.

@lovubuntu
Created October 24, 2018 17:39
Show Gist options
  • Save lovubuntu/03ab3fda63e3a62a187db9aef745780d to your computer and use it in GitHub Desktop.
Save lovubuntu/03ab3fda63e3a62a187db9aef745780d to your computer and use it in GitHub Desktop.
Data Setup
const oldSelectedList = [
{id: 1, name: 'apple', serverAttribute1: 'some value', serverAttribute2: 'some value'},
{id: 2, name: 'orange', serverAttribute1: 'some value', serverAttribute2: 'some value'}
];
const newlySelectedList = [
{id: 3, name: 'grape'},
{id: 2, name: 'orange'}
];
//expectedList = [
// {id: 2, name: 'orange', serverAttribute1: 'some value', serverAttribute2: 'some value'},
// {id: 3, name: 'grape'}
//];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment