'use strict'

const hop = Object.prototype.hasOwnProperty
function hasLength (obj) {
  return hop.call(obj, 'length')
}
module.exports = hasLength

'use strict'

const hop = Object.prototype.hasOwnProperty
function hasLength (obj) {
  return Array.isArray(obj) || (hop.call(obj, 'length') && typeof obj.length === 'number')
}
module.exports = hasLength

Improve length checks