Skip to content
This repository was archived by the owner on Nov 4, 2020. It is now read-only.

Commit 3addf38

Browse files
committed
Specify arguments more accurate
1 parent 7fe4741 commit 3addf38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ext/property.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* MIT Licensed
66
*/
77

8-
import { format, formatProp, convertPropertyName, isIndexable, length } from '../util';
8+
import { format, formatProp, convertPropertyName, length } from '../util';
99
import eql from 'should-equal';
1010

1111
var aSlice = Array.prototype.slice;
@@ -39,7 +39,7 @@ export default function(should, Assertion) {
3939
var arg = arguments[0];
4040
if (typeof arg === 'string') {
4141
args.names = [arg];
42-
} else if (isIndexable(arg)) {
42+
} else if (Array.isArray(arg)) {
4343
args.names = arg;
4444
} else {
4545
args.names = Object.keys(arg);

0 commit comments

Comments
 (0)