2121// MODULES //
2222
2323var isArray = require ( '@stdlib/assert/is-array' ) ;
24- var isArrayLike = require ( '@stdlib/assert/is-array-like ' ) ;
24+ var isCollection = require ( '@stdlib/assert/is-collection ' ) ;
2525var isTypedArrayLike = require ( '@stdlib/assert/is-typed-array-like' ) ;
2626var isInteger = require ( '@stdlib/assert/is-integer' ) ;
2727var appendArray = require ( './append_array.js' ) ;
@@ -34,8 +34,8 @@ var appendTypedArray = require( './append_typed_array.js' );
3434/**
3535* Adds elements from one collection to the end of another collection.
3636*
37- * @param {(Array|TypedArray|Object) } collection1 - collection
38- * @param {ArrayLike } collection2 - collection containing elements to add
37+ * @param {Collection } collection1 - collection
38+ * @param {Collection } collection2 - collection containing elements to add
3939* @throws {TypeError } first argument must be either an array, typed array, or an array-like object
4040* @throws {TypeError } second argument must be an array-like object
4141* @returns {(Array|TypedArray|Object) } updated collection
@@ -54,7 +54,7 @@ var appendTypedArray = require( './append_typed_array.js' );
5454* // returns <Float64Array>[ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0 ]
5555*/
5656function append ( collection1 , collection2 ) {
57- if ( ! isArrayLike ( collection2 ) ) {
57+ if ( ! isCollection ( collection2 ) ) {
5858 throw new TypeError ( 'invalid input argument. Second argument must be an array-like object. Value: `' + collection2 + '`.' ) ;
5959 }
6060 if ( isArray ( collection1 ) ) {
0 commit comments