Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/modules / ___dist / chain-able / src / deps / string / hasUnicode.js
Size: Mime:
"use strict";

const matchUnicode = require("../regexp/matchUnicode");
/**
 * Checks if `string` contains Unicode symbols.
 * @memberOf string
 * @since 5.0.0-beta.5
 *
 * {@link https://github.com/lodash/lodash/blob/master/.internal/hasUnicode.js lodash-has-unicode}
 * @see {@link lodash-has-unicode}
 *
 * @param {string} string The string to inspect.
 * @return {boolean} Returns `true` if a symbol is found, else `false`.
 *
 * @example
 *
 *    var λ = '\u03BB'
 *    hasUnicode(λ)
 *    //=> true
 *
 * @example
 *
 *    hasUnicode('nope')
 *    //=> false
 *
 */


function hasUnicode(string) {
  return matchUnicode.test(string);
}

module.exports = hasUnicode;