File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/node_modules/@stdlib/array/to-fancy/lib Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
// MODULES //
22
22
23
+ var isCollection = require ( '@stdlib/assert/is-collection' ) ;
23
24
var isArrayLike = require ( '@stdlib/assert/is-array-like' ) ;
24
25
var Proxy = require ( '@stdlib/proxy/ctor' ) ;
25
26
var arraylike2object = require ( '@stdlib/array/base/arraylike2object' ) ;
@@ -124,7 +125,7 @@ function factory() {
124
125
var arr ;
125
126
var dt ;
126
127
var o ;
127
- if ( ! isArrayLike ( x ) ) {
128
+ if ( ! isArrayLike ( x ) && ! isCollection ( x ) ) {
128
129
throw new TypeError ( format ( 'invalid argument. First argument must be array-like. Value: `%s`.' , x ) ) ;
129
130
}
130
131
if ( hasProxySupport ) {
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ var setSlice = require( './set_slice.js' );
37
37
*
38
38
* @private
39
39
* @param {Object } ctx - context object
40
- * @param {Function } ctx.setter - accessor for setting array elements
41
40
* @param {string } ctx.dtype - array data type
42
41
* @param {boolean } ctx.strict - boolean indicating whether to enforce strict bounds checking
43
42
* @param {Function } ctx.validator - function for validating new values
You can’t perform that action at this time.
0 commit comments