Class | Array |
In: |
lib/powerpack/array/butlast.rb
lib/powerpack/array/butfirst.rb |
Parent: | Object |
Returns a new array rejecting the current one‘s first element.
@return [Array] a new array without the first element or nil if this
array is empty
@example
[1, 2, 3].butfirst #=> [2, 3] [].butfirst #=> nil