Lines Matching +defs:template +defs:string

23       INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';
128 /** Used to match empty string literals in compiled template source. */
139 /** Used to match template delimiters. */
171 * Used to validate the `validate` option in `_.template` variable.
187 * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).
191 /** Used to match `RegExp` flags from their coerced string values. */
194 /** Used to detect bad signed hexadecimal string values. */
197 /** Used to detect binary string values. */
203 /** Used to detect octal string values. */
212 /** Used to ensure capturing order of template delimiters. */
215 /** Used to match unescaped characters in compiled string literals. */
274 /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
304 /** Used to make template sourceURLs easier to identify. */
415 /** Used to escape characters for inclusion in compiled string literals. */
748 * Gets the size of an ASCII `string`.
751 * @param {string} string The string inspect.
752 * @returns {number} Returns the string size.
757 * Converts an ASCII `string` to an array.
760 * @param {string} string The string to convert.
763 function asciiToArray(string) {
764 return string.split('');
768 * Splits an ASCII `string` into an array of its words.
771 * @param {string} The string to inspect.
772 * @returns {Array} Returns the words of `string`.
774 function asciiWords(string) {
775 return string.match(reAsciiWord) || [];
889 * @param {string} key The key of the property to get.
1014 * @param {string} string The string to trim.
1015 * @returns {string} Returns the trimmed string.
1017 function baseTrim(string) {
1018 return string
1019 ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
1020 : string;
1057 * @param {string} key The key of the entry to check.
1065 * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol
1069 * @param {Array} strSymbols The string symbols to inspect.
1071 * @returns {number} Returns the index of the first unmatched string symbol.
1082 * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol
1086 * @param {Array} strSymbols The string symbols to inspect.
1088 * @returns {number} Returns the index of the last unmatched string symbol.
1122 * @param {string} letter The matched letter to deburr.
1123 * @returns {string} Returns the deburred letter.
1131 * @param {string} chr The matched character to escape.
1132 * @returns {string} Returns the escaped character.
1137 * Used by `_.template` to escape characters for inclusion in compiled string literals.
1140 * @param {string} chr The matched character to escape.
1141 * @returns {string} Returns the escaped character.
1152 * @param {string} key The key of the property to get.
1160 * Checks if `string` contains Unicode symbols.
1163 * @param {string} string The string to inspect.
1166 function hasUnicode(string) {
1167 return reHasUnicode.test(string);
1171 * Checks if `string` contains a word composed of Unicode symbols.
1174 * @param {string} string The string to inspect.
1177 function hasUnicodeWord(string) {
1178 return reHasUnicodeWord.test(string);
1331 * Gets the number of symbols in `string`.
1334 * @param {string} string The string to inspect.
1335 * @returns {number} Returns the string size.
1337 function stringSize(string) {
1338 return hasUnicode(string)
1339 ? unicodeSize(string)
1340 : asciiSize(string);
1344 * Converts `string` to an array.
1347 * @param {string} string The string to convert.
1350 function stringToArray(string) {
1351 return hasUnicode(string)
1352 ? unicodeToArray(string)
1353 : asciiToArray(string);
1358 * character of `string`.
1361 * @param {string} string The string to inspect.
1364 function trimmedEndIndex(string) {
1365 var index = string.length;
1367 while (index-- && reWhitespace.test(string.charAt(index))) {}
1375 * @param {string} chr The matched character to unescape.
1376 * @returns {string} Returns the unescaped character.
1381 * Gets the size of a Unicode `string`.
1384 * @param {string} string The string inspect.
1385 * @returns {number} Returns the string size.
1387 function unicodeSize(string) {
1389 while (reUnicode.test(string)) {
1396 * Converts a Unicode `string` to an array.
1399 * @param {string} string The string to convert.
1402 function unicodeToArray(string) {
1403 return string.match(reUnicode) || [];
1407 * Splits a Unicode `string` into an array of its words.
1410 * @param {string} The string to inspect.
1411 * @returns {Array} Returns the words of `string`.
1413 function unicodeWords(string) {
1414 return string.match(reUnicodeWord) || [];
1659 * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,
1751 * By default, the template delimiters used by lodash are like those in
1752 * embedded Ruby (ERB) as well as ES2015 template strings. Change the
1753 * following template settings to use alternative delimiters.
1786 * Used to reference the data object in the template text.
1789 * @type {string}
1794 * Used to import variables into the compiled template.
1976 * @param {string} key The key of the value to remove.
1991 * @param {string} key The key of the value to get.
2009 * @param {string} key The key of the entry to check.
2023 * @param {string} key The key of the value to set.
2079 * @param {string} key The key of the value to remove.
2105 * @param {string} key The key of the value to get.
2121 * @param {string} key The key of the entry to check.
2134 * @param {string} key The key of the value to set.
2190 'string': new Hash
2200 * @param {string} key The key of the value to remove.
2215 * @param {string} key The key of the value to get.
2228 * @param {string} key The key of the entry to check.
2241 * @param {string} key The key of the value to set.
2345 * @param {string} key The key of the value to remove.
2362 * @param {string} key The key of the value to get.
2375 * @param {string} key The key of the entry to check.
2388 * @param {string} key The key of the value to set.
2493 * @param {string} key The key of the property to assign.
2510 * @param {string} key The key of the property to assign.
2589 * @param {string} key The key of the property to assign.
2610 * @param {string[]} paths The property paths to pick.
2657 * @param {string} [key] The key of `value`.
3067 * @param {Array|string} path The path of the property to get.
3103 * @returns {string} Returns the `toStringTag`.
3132 * @param {Array|string} key The key to check.
3144 * @param {Array|string} key The key to check.
3251 * @param {Array|string} path The path of the method to invoke.
3611 * @param {string} path The path of the property to get.
3668 * @param {string} key The key of the value to merge.
3759 * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
3760 * @param {string[]} orders The sort orders of `iteratees`.
3798 * @param {string[]} paths The property paths to pick.
3812 * @param {string[]} paths The property paths to pick.
3836 * @param {Array|string} path The path of the property to get.
3950 * @param {string} string The string to repeat.
3951 * @param {number} n The number of times to repeat the string.
3952 * @returns {string} Returns the repeated string.
3954 function baseRepeat(string, n) {
3956 if (!string || n < 1 || n > MAX_SAFE_INTEGER) {
3963 result += string;
3967 string += string;
4015 * @param {Array|string} path The path of the property to set.
4072 * @param {Function} string The `toString` result.
4075 var baseSetToString = !defineProperty ? identity : function(func, string) {
4079 'value': constant(string),
4262 * conversions of binary, hexadecimal, or octal string values.
4284 * @returns {string} Returns the string.
4288 if (typeof value == 'string') {
4368 * @param {Array|string} path The property path to unset.
4382 * @param {Array|string} path The path of the property to update.
4691 * @param {boolean[]|string[]} orders The order to sort by for each property.
5000 * @param {string} methodName The name of the `String` case method to use.
5004 return function(string) {
5005 string = toString(string);
5007 var strSymbols = hasUnicode(string)
5008 ? stringToArray(string)
5013 : string.charAt(0);
5017 : string.slice(1);
5031 return function(string) {
5032 return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');
5192 * @param {Function|string} func The function or method name to wrap.
5295 if (typeof value == 'string' || typeof other == 'string') {
5328 * Creates the padding for `string` based on `length`. The `chars` string
5333 * @param {string} [chars=' '] The string used as padding.
5334 * @returns {string} Returns the padding for `string`.
5418 if (!(typeof value == 'string' && typeof other == 'string')) {
5473 * @param {string} methodName The name of the `Math` method to use when rounding.
5530 * @param {Function|string} func The function or method name to wrap.
5613 * @param {string} key The key of the property to assign.
5632 * @param {string} key The key of the property to merge.
5655 * @param {string} key The key of the property to inspect.
5747 * @param {string} tag The `toStringTag` of the objects to compare.
5947 * @returns {string} Returns the function name.
5998 * @param {string} key The reference key.
6004 ? data[typeof key == 'string' ? 'string' : 'hash']
6033 * @param {string} key The key of the method to get.
6046 * @returns {string} Returns the raw `toStringTag`.
6106 * @returns {string} Returns the `toStringTag`.
6166 * @param {string} source The source to inspect.
6179 * @param {Array|string} path The path to check.
6217 if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
6245 * @param {string} tag The `toStringTag` of the object to clone.
6289 * @param {string} source The source to modify.
6291 * @returns {string} Returns the modified source.
6351 : (type == 'string' && index in object)
6388 return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
6466 * @param {string} key The key of the property to get.
6591 * Converts `value` to a string using `Object.prototype.toString`.
6595 * @returns {string} Returns the converted string.
6670 * @param {string} key The key of the property to get.
6714 * Sets the `toString` method of `func` to return `string`.
6718 * @param {Function} string The `toString` result.
6793 * Converts `string` to a property path array.
6796 * @param {string} string The string to convert.
6799 var stringToPath = memoizeCapped(function(string) {
6801 if (string.charCodeAt(0) === 46 /* . */) {
6804 string.replace(rePropName, function(match, number, quote, subString) {
6811 * Converts `value` to a string key if it's not a string or symbol.
6815 * @returns {string|symbol} Returns the key.
6818 if (typeof value == 'string' || isSymbol(value)) {
6830 * @returns {string} Returns the source code.
7641 * Converts all elements in `array` into a string separated by `separator`.
7648 * @param {string} [separator=','] The element separator.
7649 * @returns {string} Returns the joined string.
8869 * @param {...(string|string[])} [paths] The property paths to pick.
9470 * Checks if `value` is in `collection`. If `collection` is a string, it's
9480 * @param {Array|Object|string} collection The collection to inspect.
9523 * @param {Array|Function|string} path The path of the method to invoke or
9590 * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
9636 * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]
9638 * @param {string[]} [orders] The sort orders of `iteratees`.
9891 * values or the number of own enumerable string keyed properties for objects.
9897 * @param {Array|Object|string} collection The collection to inspect.
10188 * @param {string} key The key of the method.
11517 * Objects are considered empty if they have no own enumerable string keyed
11552 (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||
11665 (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));
12194 * @returns {boolean} Returns `true` if `value` is a string, else `false`.
12204 return typeof value == 'string' ||
12536 if (typeof value != 'string') {
12547 * Converts `value` to a plain object flattening inherited enumerable string
12605 * Converts `value` to a string. An empty string is returned for `null`
12613 * @returns {string} Returns the converted string.
12632 * Assigns own enumerable string keyed properties of source objects to the
12783 * @param {...(string|string[])} [paths] The property paths to pick.
12796 * `properties` object is given, its own enumerable string keyed properties
12834 * Assigns own and inherited enumerable string keyed properties of source
12919 * @returns {string|undefined} Returns the key of the matched element,
12958 * @returns {string|undefined} Returns the key of the matched element,
12988 * Iterates over own and inherited enumerable string keyed properties of an
13054 * Iterates over own enumerable string keyed properties of an object and
13178 * @param {Array|string} path The path of the property to get.
13207 * @param {Array|string} path The path to check.
13238 * @param {Array|string} path The path to check.
13334 * @param {Array|string} path The path of the method to invoke.
13408 * string keyed property of `object` thru `iteratee`. The iteratee is invoked
13438 * by running each own enumerable string keyed property of `object` thru
13476 * inherited enumerable string keyed properties of source objects into the
13555 * @param {...(string|string[])} [paths] The property paths to omit.
13588 * the own and inherited enumerable string keyed properties of `object` that
13618 * @param {...(string|string[])} [paths] The property paths to pick.
13672 * @param {Array|string} path The path of the property to resolve.
13726 * @param {Array|string} path The path of the property to set.
13758 * @param {Array|string} path The path of the property to set.
13775 * Creates an array of own enumerable string keyed-value pairs for `object`
13801 * Creates an array of own and inherited enumerable string keyed-value pairs
13829 * enumerable string keyed properties thru `iteratee`, with each invocation
13889 * @param {Array|string} path The path of the property to unset.
13922 * @param {Array|string} path The path of the property to set.
13954 * @param {Array|string} path The path of the property to set.
13971 * Creates an array of the own enumerable string keyed property values of `object`.
14001 * Creates an array of the own and inherited enumerable string keyed property
14188 * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
14194 * @param {string} [string=''] The string to convert.
14195 * @returns {string} Returns the camel cased string.
14213 * Converts the first character of `string` to upper case and the remaining
14220 * @param {string} [string=''] The string to capitalize.
14221 * @returns {string} Returns the capitalized string.
14227 function capitalize(string) {
14228 return upperFirst(toString(string).toLowerCase());
14232 * Deburrs `string` by converting
14242 * @param {string} [string=''] The string to deburr.
14243 * @returns {string} Returns the deburred string.
14249 function deburr(string) {
14250 string = toString(string);
14251 return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');
14255 * Checks if `string` ends with the given target string.
14261 * @param {string} [string=''] The string to inspect.
14262 * @param {string} [target] The string to search for.
14263 * @param {number} [position=string.length] The position to search up to.
14264 * @returns {boolean} Returns `true` if `string` ends with `target`,
14277 function endsWith(string, target, position) {
14278 string = toString(string);
14281 var length = string.length;
14288 return position >= 0 && string.slice(position, end) == target;
14292 * Converts the characters "&", "<", ">", '"', and "'" in `string` to their
14312 * @param {string} [string=''] The string to escape.
14313 * @returns {string} Returns the escaped string.
14319 function escape(string) {
14320 string = toString(string);
14321 return (string && reHasUnescapedHtml.test(string))
14322 ? string.replace(reUnescapedHtml, escapeHtmlChar)
14323 : string;
14328 * "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
14334 * @param {string} [string=''] The string to escape.
14335 * @returns {string} Returns the escaped string.
14341 function escapeRegExp(string) {
14342 string = toString(string);
14343 return (string && reHasRegExpChar.test(string))
14344 ? string.replace(reRegExpChar, '\\$&')
14345 : string;
14349 * Converts `string` to
14356 * @param {string} [string=''] The string to convert.
14357 * @returns {string} Returns the kebab cased string.
14374 * Converts `string`, as space separated words, to lower case.
14380 * @param {string} [string=''] The string to convert.
14381 * @returns {string} Returns the lower cased string.
14398 * Converts the first character of `string` to lower case.
14404 * @param {string} [string=''] The string to convert.
14405 * @returns {string} Returns the converted string.
14417 * Pads `string` on the left and right sides if it's shorter than `length`.
14424 * @param {string} [string=''] The string to pad.
14426 * @param {string} [chars=' '] The string used as padding.
14427 * @returns {string} Returns the padded string.
14439 function pad(string, length, chars) {
14440 string = toString(string);
14443 var strLength = length ? stringSize(string) : 0;
14445 return string;
14450 string +
14456 * Pads `string` on the right side if it's shorter than `length`. Padding
14463 * @param {string} [string=''] The string to pad.
14465 * @param {string} [chars=' '] The string used as padding.
14466 * @returns {string} Returns the padded string.
14478 function padEnd(string, length, chars) {
14479 string = toString(string);
14482 var strLength = length ? stringSize(string) : 0;
14484 ? (string + createPadding(length - strLength, chars))
14485 : string;
14489 * Pads `string` on the left side if it's shorter than `length`. Padding
14496 * @param {string} [string=''] The string to pad.
14498 * @param {string} [chars=' '] The string used as padding.
14499 * @returns {string} Returns the padded string.
14511 function padStart(string, length, chars) {
14512 string = toString(string);
14515 var strLength = length ? stringSize(string) : 0;
14517 ? (createPadding(length - strLength, chars) + string)
14518 : string;
14522 * Converts `string` to an integer of the specified radix. If `radix` is
14533 * @param {string} string The string to convert.
14545 function parseInt(string, radix, guard) {
14551 return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);
14555 * Repeats the given string `n` times.
14561 * @param {string} [string=''] The string to repeat.
14562 * @param {number} [n=1] The number of times to repeat the string.
14564 * @returns {string} Returns the repeated string.
14576 function repeat(string, n, guard) {
14577 if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {
14582 return baseRepeat(toString(string), n);
14586 * Replaces matches for `pattern` in `string` with `replacement`.
14595 * @param {string} [string=''] The string to modify.
14596 * @param {RegExp|string} pattern The pattern to replace.
14597 * @param {Function|string} replacement The match replacement.
14598 * @returns {string} Returns the modified string.
14606 string = toString(args[0]);
14608 return args.length < 3 ? string : string.replace(args[1], args[2]);
14612 * Converts `string` to
14619 * @param {string} [string=''] The string to convert.
14620 * @returns {string} Returns the snake cased string.
14637 * Splits `string` by `separator`.
14646 * @param {string} [string=''] The string to split.
14647 * @param {RegExp|string} separator The separator pattern to split by.
14649 * @returns {Array} Returns the string segments.
14655 function split(string, separator, limit) {
14656 if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {
14663 string = toString(string);
14664 if (string && (
14665 typeof separator == 'string' ||
14669 if (!separator && hasUnicode(string)) {
14670 return castSlice(stringToArray(string), 0, limit);
14673 return string.split(separator, limit);
14677 * Converts `string` to
14684 * @param {string} [string=''] The string to convert.
14685 * @returns {string} Returns the start cased string.
14702 * Checks if `string` starts with the given target string.
14708 * @param {string} [string=''] The string to inspect.
14709 * @param {string} [target] The string to search for.
14711 * @returns {boolean} Returns `true` if `string` starts with `target`,
14724 function startsWith(string, target, position) {
14725 string = toString(string);
14728 : baseClamp(toInteger(position), 0, string.length);
14731 return string.slice(position, position + target.length) == target;
14735 * Creates a compiled template function that can interpolate data properties
14738 * properties may be accessed as free variables in the template. If a setting
14741 * **Note:** In the development build `_.template` utilizes
14755 * @param {string} [string=''] The template string.
14762 * An object to import into the template as free variables.
14765 * @param {string} [options.sourceURL='lodash.templateSources[n]']
14766 * The sourceURL of the compiled template.
14767 * @param {string} [options.variable='obj']
14770 * @returns {Function} Returns the compiled template function.
14773 * // Use the "interpolate" delimiter to create a compiled template.
14774 * var compiled = _.template('hello <%= user %>!');
14779 * var compiled = _.template('<b><%- value %></b>');
14784 * var compiled = _.template('<% _.forEach(users, function(user) { %><li><%- user %></li><% }); %>');
14789 * var compiled = _.template('<% print("hello " + user); %>!');
14793 * // Use the ES template literal delimiter as an "interpolate" delimiter.
14795 * var compiled = _.template('hello ${ user }!');
14800 * var compiled = _.template('<%= "\\<%- value %\\>" %>');
14806 * var compiled = _.template(text, { 'imports': { 'jq': jQuery } });
14810 * // Use the `sourceURL` option to specify a custom sourceURL for the template.
14811 * var compiled = _.template('hello <%= user %>!', { 'sourceURL': '/basic/greeting.jst' });
14815 * // Use the `variable` option to ensure a with-statement isn't used in the compiled template.
14816 * var compiled = _.template('hi <%= data.user %>!', { 'variable': 'data' });
14824 * // Use custom template delimiters.
14826 * var compiled = _.template('hello {{ user }}!');
14834 * "main": ' + _.template(mainText).source + '\
14838 function template(string, options, guard) {
14844 if (guard && isIterateeCall(string, options, guard)) {
14847 string = toString(string);
14878 string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) {
14881 // Escape characters that can't be included in string literals.
14882 source += string.slice(index, offset).replace(reUnescapedString, escapeStringChar);
14956 * Converts `string`, as a whole, to lower case just like
14963 * @param {string} [string=''] The string to convert.
14964 * @returns {string} Returns the lower cased string.
14981 * Converts `string`, as a whole, to upper case just like
14988 * @param {string} [string=''] The string to convert.
14989 * @returns {string} Returns the upper cased string.
15006 * Removes leading and trailing whitespace or specified characters from `string`.
15012 * @param {string} [string=''] The string to trim.
15013 * @param {string} [chars=whitespace] The characters to trim.
15015 * @returns {string} Returns the trimmed string.
15027 function trim(string, chars, guard) {
15028 string = toString(string);
15029 if (string && (guard || chars === undefined)) {
15030 return baseTrim(string);
15032 if (!string || !(chars = baseToString(chars))) {
15033 return string;
15035 var strSymbols = stringToArray(string),
15044 * Removes trailing whitespace or specified characters from `string`.
15050 * @param {string} [string=''] The string to trim.
15051 * @param {string} [chars=whitespace] The characters to trim.
15053 * @returns {string} Returns the trimmed string.
15062 function trimEnd(string, chars, guard) {
15063 string = toString(string);
15064 if (string && (guard || chars === undefined)) {
15065 return string.slice(0, trimmedEndIndex(string) + 1);
15067 if (!string || !(chars = baseToString(chars))) {
15068 return string;
15070 var strSymbols = stringToArray(string),
15077 * Removes leading whitespace or specified characters from `string`.
15083 * @param {string} [string=''] The string to trim.
15084 * @param {string} [chars=whitespace] The characters to trim.
15086 * @returns {string} Returns the trimmed string.
15095 function trimStart(string, chars, guard) {
15096 string = toString(string);
15097 if (string && (guard || chars === undefined)) {
15098 return string.replace(reTrimStart, '');
15100 if (!string || !(chars = baseToString(chars))) {
15101 return string;
15103 var strSymbols = stringToArray(string),
15110 * Truncates `string` if it's longer than the given maximum string length.
15111 * The last characters of the truncated string are replaced with the omission
15112 * string which defaults to "...".
15118 * @param {string} [string=''] The string to truncate.
15120 * @param {number} [options.length=30] The maximum string length.
15121 * @param {string} [options.omission='...'] The string to indicate text is omitted.
15122 * @param {RegExp|string} [options.separator] The separator pattern to truncate to.
15123 * @returns {string} Returns the truncated string.
15146 function truncate(string, options) {
15155 string = toString(string);
15157 var strLength = string.length;
15158 if (hasUnicode(string)) {
15159 var strSymbols = stringToArray(string);
15163 return string;
15171 : string.slice(0, end);
15180 if (string.slice(end).search(separator)) {
15193 } else if (string.indexOf(baseToString(separator), end) != end) {
15204 * `&amp;`, `&lt;`, `&gt;`, `&quot;`, and `&#39;` in `string` to
15214 * @param {string} [string=''] The string to unescape.
15215 * @returns {string} Returns the unescaped string.
15221 function unescape(string) {
15222 string = toString(string);
15223 return (string && reHasEscapedHtml.test(string))
15224 ? string.replace(reEscapedHtml, unescapeHtmlChar)
15225 : string;
15229 * Converts `string`, as space separated words, to upper case.
15235 * @param {string} [string=''] The string to convert.
15236 * @returns {string} Returns the upper cased string.
15253 * Converts the first character of `string` to upper case.
15259 * @param {string} [string=''] The string to convert.
15260 * @returns {string} Returns the converted string.
15272 * Splits `string` into an array of its words.
15278 * @param {string} [string=''] The string to inspect.
15279 * @param {RegExp|string} [pattern] The pattern to match words.
15281 * @returns {Array} Returns the words of `string`.
15290 function words(string, pattern, guard) {
15291 string = toString(string);
15295 return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
15297 return string.match(pattern) || [];
15343 * @param {...(string|string[])} methodNames The object method names to bind.
15595 * return !_.isRegExp(func) ? iteratee(func) : function(string) {
15596 * return func.test(string);
15662 * @param {Array|string} path The path of the property to get.
15691 * @param {Array|string} path The path of the method to invoke.
15743 * Adds all own enumerable string keyed function properties of a source
15761 * function vowels(string) {
15762 * return _.filter(string, function(v) {
15967 * @param {Array|string} path The path of the property to get.
16156 * This method returns an empty string.
16162 * @returns {string} Returns the empty string.
16257 * @param {string} [prefix=''] The value to prefix the ID with.
16258 * @returns {string} Returns the unique ID.
16915 lodash.template = template;
16956 * @type {string}