append/prepend with an array as first parameter
Is there a technical reason why jQuery's append/prepend does not work (or could not be implemented to work) with an array of elements as the first parameter?
e.g.
$('#block').append( ['<p>hi</p>', element1, element2 ] )
Currently these are the methods of performing this operation:
$('#block').append('<p>hi</p>', [element1, element2 ] )
- or -
$('#block').append('<p>hi</p>', element1, element2)
- or -
using the function.apply method with the list