diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 60c960f95..30fd3477e 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -769,6 +769,9 @@ result = _.times(3, _.partial(_.random, 1, 6)); result = _.times(3, function(n: number) { mage.castSpell(n); }); result = _.times(3, function(n: number) { this.cast(n); }, mage); +result = _.unescape('Moe, Larry & Curly'); + + ////////////////////////////////////////////////////////////////////////////////////////////////// var iceCream = { flavor: "chocolate" }; diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 4f32ef597..8f65399ef 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -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;