diff --git a/entries/jQuery.merge.xml b/entries/jQuery.merge.xml index ef43c770..b122635e 100644 --- a/entries/jQuery.merge.xml +++ b/entries/jQuery.merge.xml @@ -4,15 +4,15 @@ Merge the contents of two arrays together into the first array. 1.0 - - The first array to merge, the elements of second added. + + The first array-like object to merge, the elements of second added. - - The second array to merge into the first, unaltered. + + The second array-like object to merge into the first, unaltered. -

The $.merge() operation forms an array that contains all elements from the two arrays. The orders of items in the arrays are preserved, with items from the second array appended. The $.merge() function is destructive. It alters the first parameter to add the items from the second.

+

The $.merge() operation forms an array that contains all elements from the two arrays. The orders of items in the arrays are preserved, with items from the second array appended. The $.merge() function is destructive. It alters the length and numeric index properties of the first object to include items from the second.

If you need the original first array, make a copy of it before calling $.merge(). Fortunately, $.merge() itself can be used for this duplication:


 var newArray = $.merge([], oldArray);
diff --git a/pages/Types.html b/pages/Types.html
index feab0a76..5cd81ca6 100644
--- a/pages/Types.html
+++ b/pages/Types.html
@@ -73,7 +73,7 @@
       
  • Array<Type> Notation
  • -
  • Array-Like Objects
  • +
  • Array-Like Object
  • PlainObject
  • Date
  • Function @@ -412,7 +412,7 @@

    Array<Type> Notation

  • This indicates that the method doesn't only expect an array as the argument, but also specifies the expected type. The notation is borrowed from Java 5's generics notation (or C++ templates).

    -

    Array-Like Objects

    +

    Array-Like Object

    Either a true JavaScript Array or a JavaScript Object that contains a nonnegative integer length property and index properties from 0 up to length - 1. This latter case includes array-like objects commonly encountered in web-based code such as the arguments object and the NodeList object returned by many DOM methods.

    When a jQuery API accepts either plain Objects or Array-Like objects, a plain Object with a numeric length property will trigger the Array-Like behavior.

    PlainObject