//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


@@ -120,17 +120,16 @@
  strict'
-;
 %0A%0Avar is
@@ -159,9 +159,8 @@
 ob')
-;
 %0A%0Afu
@@ -432,9 +432,8 @@
 hasGlob%0A
-%0A

update glob/has-glob -- lint