aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.coffee3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/utils.coffee b/lib/utils.coffee
index a44bc06c..c92fa1ff 100644
--- a/lib/utils.coffee
+++ b/lib/utils.coffee
@@ -108,6 +108,9 @@ Utils =
else
Utils.createSearchUrl string
+ # detects both literals and dynamically created strings
+ isString: (obj) -> typeof obj == 'string' or obj instanceof String
+
# This creates a new function out of an existing function, where the new function takes fewer arguments. This
# allows us to pass around functions instead of functions + a partial list of arguments.
Function::curry = ->