Do not allow (non-hex-prefixed) strings to be treated as arrayish.
This commit is contained in:
parent
1b3b117b06
commit
b4d622b02b
@ -7,7 +7,7 @@ var defineProperty = require('./properties.js').defineProperty;
|
|||||||
var throwError = require('./throw-error');
|
var throwError = require('./throw-error');
|
||||||
|
|
||||||
function isArrayish(value) {
|
function isArrayish(value) {
|
||||||
if (!value || parseInt(value.length) != value.length) {
|
if (!value || parseInt(value.length) != value.length || typeof(value) === 'string') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user