Skip to content

Commit b92cee8

Browse files
committed
Use less restrictive assertion
1 parent d79343f commit b92cee8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • lib/node_modules/@stdlib/utils/append/lib

lib/node_modules/@stdlib/utils/append/lib/append.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var isArray = require( '@stdlib/assert/is-array' );
24-
var isArrayLike = require( '@stdlib/assert/is-array-like' );
24+
var isCollection = require( '@stdlib/assert/is-collection' );
2525
var isTypedArrayLike = require( '@stdlib/assert/is-typed-array-like' );
2626
var isInteger = require( '@stdlib/assert/is-integer' );
2727
var 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
*/
5656
function 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

Comments
 (0)