Skip to content

Commit 4e12994

Browse files
committed
Use less restrictive assertion
1 parent ba81480 commit 4e12994

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/string/from-code-point/lib

lib/node_modules/@stdlib/string/from-code-point/lib/main.js

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

2323
var isNonNegativeInteger = require( '@stdlib/assert/is-nonnegative-integer' ).isPrimitive;
24-
var isArrayLikeObject = require( '@stdlib/assert/is-array-like-object' );
24+
var isCollection = require( '@stdlib/assert/is-collection' );
2525
var MAX_CODE_POINT = require( '@stdlib/constants/string/unicode-max' );
2626
var MAX_BMP_CODE_POINT = require( '@stdlib/constants/string/unicode-max-bmp' );
2727

@@ -74,7 +74,7 @@ function fromCodePoint( args ) {
7474
var i;
7575

7676
len = arguments.length;
77-
if ( len === 1 && isArrayLikeObject( args ) ) {
77+
if ( len === 1 && isCollection( args ) ) {
7878
arr = arguments[ 0 ];
7979
len = arr.length;
8080
} else {

0 commit comments

Comments
 (0)