Skip to content

Instantly share code, notes, and snippets.

@stryju
Created April 23, 2014 09:16
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 stryju/ab1a1f03ee761f4da9ad to your computer and use it in GitHub Desktop.
Save stryju/ab1a1f03ee761f4da9ad to your computer and use it in GitHub Desktop.
/* global
define: false
*/
define([], function () {
'use strict';
function remove( list, item ) {
var index = list.indexOf( item );
if ( index < 0 ) {
return false;
}
list.splice( index, 1 );
return true;
}
return remove;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment