title: How to get Children that have same type Kineticjs?
body: <p>I have a trouble in Kineticjs, in my code:</p>
  
  <pre><code>var G1=new Kinetic.Group()
  
  var sq=new Kinetic.Rect({
  x:0,
  y:0,
  name:"sq"
  })
  var line1=new Kinetic.Line({
  Points:[0,0,10,10],
  name:"line1"
  })
  
  var line2=new Kinetic.Line({
  Points:[0,0,50,50],
  name:"line1"
  })
  
  G1.add(sq).add(line1).add(line2)
  </code></pre>
  
  <p>I know that to get the children from G1 just type "G1.getChildren()". But to get the children that has same type for example type Kinetic.Line I don't have any idea.
  Please help me, tahnks</p>