//adopted from: has-glob <https://github.com/jonschlinkert/has-glob>
// Copyright (c) 2015, Jon Schlinkert. (MIT)

'use strict';

var isGlob = require('./is-glob');

function hasGlob (val) {
  if (val == null) return false
  if (typeof val === 'string') return isGlob(val)

  if (Array.isArray(val)) {
    var len = val.length

    while (len--) {
      if (isGlob(val[len])) return true
    }
  }
  return false
}

module.exports = hasGlob


//adopted from: has-glob <https://github.com/jonschlinkert/has-glob>
// Copyright (c) 2015, Jon Schlinkert. (MIT)

'use strict'

var isGlob = require('./is-glob')

function hasGlob (val) {
  if (val == null) return false
  if (typeof val === 'string') return isGlob(val)

  if (Array.isArray(val)) {
    var len = val.length

    while (len--) {
      if (isGlob(val[len])) return true
    }
  }
  return false
}

module.exports = hasGlob

update glob/has-glob -- lint