demo/bundle.js
/**
             * Remove an item from an array
             */
Remove an item from an array
Remove an item from an array
function remove (arr, item) {
              if (arr.length) {
                var index = arr.indexOf(item);
                if (index > -1) {
                  return arr.splice(index, 1)
                }
              }
            }
function remove ( arr , item ) { if ( arr . length ) { var index = arr . indexOf ( item ) ; if ( index > - 1 ) { return arr . splice ( index , 1 ) } } }
Remove an item from an array
Remove an item from an array