-
-
Save stryju/ab1a1f03ee761f4da9ad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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