From 3ee5b5ddd80567ab9fd6335847cab8d3df442c2f Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Thu, 10 Sep 2009 15:43:29 +0100 Subject: [PATCH] doc: Merged and updated old docs for Hash#values. --- src/lang/hash.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lang/hash.js b/src/lang/hash.js index 3f020ea..ec9ab14 100644 --- a/src/lang/hash.js +++ b/src/lang/hash.js @@ -188,7 +188,15 @@ var Hash = Class.create(Enumerable, (function() { /** * Hash#values() -> Array * - * Collect the values of a hash and returns them in an array. + * Collects the values of the hash and returns them in an array. + * + * The order of the values is not guaranteed. + * + * ### Example + * + * var h = $H({one: "uno", two: "due", three: "tre"}); + * h.values(); + * // -> ["uno", "tre", "due"] (these may be in any order) **/ function values() { return this.pluck('value');