mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Make _.unescape doc example align with _.escape. [ci skip]
This commit is contained in:
@@ -8745,8 +8745,8 @@
|
|||||||
* @returns {string} Returns the unescaped string.
|
* @returns {string} Returns the unescaped string.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* _.unescape('fred, barney & pebbles');
|
* _.unescape('fred, barney, & pebbles');
|
||||||
* // => 'fred, barney & pebbles'
|
* // => 'fred, barney, & pebbles'
|
||||||
*/
|
*/
|
||||||
function unescape(string) {
|
function unescape(string) {
|
||||||
string = string == null ? '' : String(string);
|
string = string == null ? '' : String(string);
|
||||||
|
|||||||
Reference in New Issue
Block a user