You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
var isNum = require('./isNum'); |
|
var isFn = require('./isFn'); |
|
var MAX_ARR_IDX = Math.pow(2, 53) - 1; |
|
exports = function(val) { |
|
if (!val) return false; |
|
var len = val.length; |
|
return isNum(len) && len >= 0 && len <= MAX_ARR_IDX && !isFn(val); |
|
}; |
|
|
|
module.exports = exports;
|
|
|