Sha256: a153a0a63412120d7ef9bffe2bbef01e309dee54b8deb2429bd7ffbddd17962f

Contents?: true

Size: 211 Bytes

Versions: 2

Compression:

Stored size: 211 Bytes

Contents

# Returns a copy of the given array with duplicates removed.
window.modularity.array_unique = (array) ->
  output = {}
  output[array[i]] = array[i] for i in [0...array.length]
  value for key, value of output

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
modularity-rails-0.16.0 app/assets/javascripts/modularity/tools/array_tools.coffee
modularity-coffee-rails-0.0.1 app/assets/javascripts/modularity/tools/array_tools.coffee