mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Expose trim, trimLeft, and trimRight.
This commit is contained in:
12
dist/lodash.underscore.js
vendored
12
dist/lodash.underscore.js
vendored
@@ -3491,8 +3491,8 @@
|
||||
* return '<p>' + func(text) + '</p>';
|
||||
* });
|
||||
*
|
||||
* p('Fred, Wilma, & Pebbles');
|
||||
* // => '<p>Fred, Wilma, & Pebbles</p>'
|
||||
* p('fred, barney, & pebbles');
|
||||
* // => '<p>fred, barney, & pebbles</p>'
|
||||
*/
|
||||
function wrap(value, wrapper) {
|
||||
return createWrapper(wrapper, 16, [value]);
|
||||
@@ -4331,8 +4331,8 @@
|
||||
* @returns {string} Returns the escaped string.
|
||||
* @example
|
||||
*
|
||||
* _.escape('Fred, Wilma, & Pebbles');
|
||||
* // => 'Fred, Wilma, & Pebbles'
|
||||
* _.escape('fred, barney, & pebbles');
|
||||
* // => 'fred, barney, & pebbles'
|
||||
*/
|
||||
function escape(string) {
|
||||
return string == null ? '' : String(string).replace(reUnescapedHtml, escapeHtmlChar);
|
||||
@@ -4495,8 +4495,8 @@
|
||||
* @returns {string} Returns the unescaped string.
|
||||
* @example
|
||||
*
|
||||
* _.unescape('Fred, Barney & Pebbles');
|
||||
* // => 'Fred, Barney & Pebbles'
|
||||
* _.unescape('fred, barney & pebbles');
|
||||
* // => 'fred, barney & pebbles'
|
||||
*/
|
||||
function unescape(string) {
|
||||
if (string == null) {
|
||||
|
||||
Reference in New Issue
Block a user