function pull( arr, item ) {
  const index = Array.prototype.indexOf.call( arr, item )
  if ( index > -1 )
    return Array.prototype.splice.call( arr, index, 1 )[0]
  else return null
}
/** Pull a an item from an array and return it. */
Pull a an item from an array and return it.
Pull a an item from an array and return it .
function pull( arr, item ) {
  const index = Array.prototype.indexOf.call( arr, item )
  if ( index > -1 )
    return Array.prototype.splice.call( arr, index, 1 )[0]
  else return null
}
function pull ( arr , item ) { const index = Array . prototype . indexOf . call ( arr , item ) if ( index > - 1 ) return Array . prototype . splice . call ( arr , index , 1 ) [ 0 ] else return null }
Pull a an item from an array and return it.
Pull a an item from an array and return it .