Skip to content

Instantly share code, notes, and snippets.

@derek-adair
Last active July 16, 2019 17:54
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 derek-adair/79760c0435360c9523df0558769331ac to your computer and use it in GitHub Desktop.
Save derek-adair/79760c0435360c9523df0558769331ac to your computer and use it in GitHub Desktop.
let
newState = Object.assign({}, state),
library_clips = newState.library[action.library_owner].clips,
clip_index = library_clips.indexOf(`${action.clip.user}/${action.clip.name}`)
;
library_clips.splice(clip_index, 1)
return newState
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment