mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
added _.unescape definition
This commit is contained in:
1 parent
2fd84867f3
commit
e643854b1e
2 files changed
+11
-1
No files matched your search
@@ -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