ReactiveArray icon indicating copy to clipboard operation
ReactiveArray copied to clipboard

Add first() and last() as convenience methods

Open dalgard opened this issue 10 years ago • 0 comments

Kindly consider seizing the opportunity to add reactive versions of two convenience methods that are missing on native arrays.

I'd be happy to send a pull request.

first: ->
  @get 0  # get is already reactive

last: ->
  @get @length - 1

dalgard avatar Aug 11 '15 15:08 dalgard