Closed AaronAcerboni closed 11 years ago
I'm re-opening this issue because I don't think it has been solved.
Concat is still mutating the original array.
Steps to reproduce:
var collection = Pablo.rect();
var returned = collection.concat(Pablo.ellipse())
returned.length // 2 which is correct
collection.length // 2 which is not correct
Currently
concat
is an alias forpush
andadd
which are mutators. Insteadconcat
should be more in line with the native array method which returns a new collection/array.