import __isGlob from 'is-glob'; /** * @name isGlob * @namespace shared.is * @type Function * @platform js * @platform node * @status stable * * Check if the passed string is a valid glob pattern or not * * @param {String} $string The string to check * @return {Boolean} true if is a valid glob pattern, false if not * * @todo tests * * @snippet __isGlob($1) * * @example js * import { __isGlob } from '@lotsof/sugar/is'; * __isGlob('something/*.js); // => true * * @see https://www.npmjs.com/package/is-glob * @since 1.0.0 * @author Olivier Bossel (https://lotsof.dev) */ export default function (string: string): boolean { return __isGlob(string); }