Skip to content

Commit d79343f

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/utils/prepend/lib

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

Lines changed: 2 additions & 2 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 prependArray = require( './prepend_array.js' );
@@ -54,7 +54,7 @@ var prependTypedArray = require( './prepend_typed_array.js' );
5454
* // returns <Float64Array>[ 6.0, 7.0, 1.0, 2.0, 3.0, 4.0, 5.0 ]
5555
*/
5656
function prepend( 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)