added _.unescape definition

This commit is contained in:
Brian Zengel
2013-10-20 20:17:10 -04:00
parent 2fd84867f3
commit e643854b1e
2 changed files with 11 additions and 1 deletions
+3
View File
@@ -769,6 +769,9 @@ result = <any[]>_.times(3, _.partial(_.random, 1, 6));
result = <any[]>_.times(3, function(n: number) { mage.castSpell(n); });
result = <any[]>_.times(3, function(n: number) { this.cast(n); }, mage);
result = <string>_.unescape('Moe, Larry &amp; Curly');
//////////////////////////////////////////////////////////////////////////////////////////////////
var iceCream = { flavor: "chocolate" };
+8 -1
View File
@@ -2837,7 +2837,14 @@ declare module _ {
callback: Function,
context?: any): TResult[];
/**
* The inverse of _.escape this method converts the HTML entities &amp;, <, &gt;, &quot;, and
* &#39; in string to their corresponding characters.
* @param string The string to unescape.
* @return The unescaped string.
**/
export function unescape(
string: string): string;