mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added _.unescape definition
This commit is contained in:
@@ -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 & Curly');
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var iceCream = { flavor: "chocolate" };
|
||||
|
||||
Vendored
+8
-1
@@ -2837,7 +2837,14 @@ declare module _ {
|
||||
callback: Function,
|
||||
context?: any): TResult[];
|
||||
|
||||
|
||||
/**
|
||||
* The inverse of _.escape this method converts the HTML entities &, <, >, ", and
|
||||
* ' in string to their corresponding characters.
|
||||
* @param string The string to unescape.
|
||||
* @return The unescaped string.
|
||||
**/
|
||||
export function unescape(
|
||||
string: string): string;
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user