From 4c6c3210639bcf23f33b419963d930743062811a Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 28 Jan 2016 16:59:46 +0000 Subject: Simplify hint-string generation; simplification. --- lib/utils.coffee | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/utils.coffee') diff --git a/lib/utils.coffee b/lib/utils.coffee index b69b926b..c255102e 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -281,6 +281,7 @@ Array.copy = (array) -> Array.prototype.slice.call(array, 0) String::startsWith = (str) -> @indexOf(str) == 0 String::ltrim = -> @replace /^\s+/, "" String::rtrim = -> @replace /\s+$/, "" +String::reverse = -> @split("").reverse().join "" globalRoot = window ? global globalRoot.extend = (hash1, hash2) -> -- cgit v1.2.3