Sha256: bc58e00f9dbcb45ba438df44c305c01c287b6c143297ff921342209b5b344a7b

Contents?: true

Size: 248 Bytes

Versions: 22

Compression:

Stored size: 248 Bytes

Contents

unless Array::each
  if Array::forEach
    Array::each = Array::forEach
  else
    Array::each = (block)->
      _.each(@, block)

Array::first = -> @[0]
Array::last = -> @[@length - 1]
Array::min = -> Math.min(@...)
Array::max = -> Math.max(@...)

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
houston-core-0.5.6 app/assets/javascripts/core/core_ext/array.coffee
houston-core-0.5.5 app/assets/javascripts/core/core_ext/array.coffee