add #buildLookup method to turn collection in to a fast lookup hash

implement #without in terms of it
add tests and internal docs
This commit is contained in:
Mike Frawley
2010-02-17 10:12:22 -06:00
parent 1b1943b0ca
commit 263b1ee92d
3 changed files with 28 additions and 3 deletions

View File

@@ -11,7 +11,7 @@ $(document).ready(function() {
});
test("objects: functions", function() {
var expected = ["alias", "all", "any", "bind", "bindAll", "breakLoop", "clone", "compact",
var expected = ["alias", "all", "any", "bind", "bindAll", "breakLoop", "buildLookup", "clone", "compact",
"compose","defer", "delay", "detect", "each", "every", "extend", "filter", "first",
"flatten", "foldl", "foldr", "forEach", "functions", "head", "identity", "include",
"indexOf", "inject", "intersect", "invoke", "isArguments", "isArray", "isDate", "isElement", "isEmpty", "isEqual",