       return true if match
     false
 
-  for item in iterable
+  for item in array
     results.push(item) unless contains(results, item)
 
   results
 
-
 ###################################
 
 describe "Jax.Mesh.Icosahedron", ->
+
   icosa = null
   verts = colors = texes = norms = null
   

  - its sides are of the same length
  - its vertices are at the same distance of the center

Maybe this should not rely on the center being computed ?

@return {Boolean}
###
Jax.Geometry.Triangle.prototype.isEquilateral = () ->
  distA = vec3.dist @center, @a
  distB = vec3.dist @center, @b
  distC = vec3.dist @center, @c

  Math.equalish(distA, distB) && Math.equalish(distB, distC)


###
Returns an array containing the elements of iterable,
but without any duplicates
Todo: make results of the same type as iterable

@param {Array|Object} iterable
@return {Array}
###
unique = (iterable) ->
  results = []

  contains = (haystack, needle) ->


    beforeEach ->
      vertices = icosa.getVerticesAsVectors()
      uniqueVertices = trim_duplicates vertices

    it "should be 60 overall (20 faces, 3 vertices each)", ->
      expect(vertices.length).toBe(60)
