Skip to content

Instantly share code, notes, and snippets.

@bloodyowl
Created February 22, 2014 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bloodyowl/9163107 to your computer and use it in GitHub Desktop.
Save bloodyowl/9163107 to your computer and use it in GitHub Desktop.
observable

set

{
  addition : {
    value : "foo", 
    key : "bar"
  }
}

remove

{
  deletions : {
    key : "bar"
  }
}

push

{
  addition : {
    index : 4,
    value : ["bar"]
  }
}

unshift

{
  addition : {
    index : 0,
    value : ["foo"]
  }
}

shift

{
  deletions : [0,0]
}

pop

{
  deletions : [5,5]
}

reverse

{}

sort

{}

splice

{
  deletions : [3,6],
  additions : {
    index : 3
    values : ["foo", "bar"]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment