diff --git a/index.html b/index.html index 7afa8c91c..808756688 100644 --- a/index.html +++ b/index.html @@ -173,8 +173,8 @@
noConflict, identity, times, - breakLoop, uniqueId, - template + breakLoop, mixin, + uniqueId, template

@@ -982,6 +982,23 @@ _.each([1, 2, 3], function(num) { result; => 2 +

+ mixin_.mixin(object) +
+ Allows you to extend Underscore with your own utility functions. Pass + a hash of {name: function} definitions to have your functions + added to the Underscore object, as well as the OOP wrapper. +

+
+_.mixin({
+  capitalize : function(string) {
+    return string.charAt(0).toUpperCase() + string.substring(1).toLowerCase();
+  }
+});
+_("fabio").capitalize();
+=> "Fabio"
+
+

uniqueId_.uniqueId([prefix])