added an isEmpty function that works on arrays and objects

This commit is contained in:
Jeremy Ashkenas
2009-11-07 23:04:18 -05:00
parent d4f6e1a42f
commit b5920e94a3
4 changed files with 32 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ $(document).ready(function() {
var expected = ["all", "any", "bind", "bindAll", "clone", "compact", "compose",
"defer", "delay", "detect", "each", "every", "extend", "filter", "first",
"flatten", "foldl", "foldr", "forEach", "functions", "identity", "include",
"indexOf", "inject", "intersect", "invoke", "isArray", "isElement", "isEqual",
"indexOf", "inject", "intersect", "invoke", "isArray", "isElement", "isEmpty", "isEqual",
"isFunction", "isUndefined", "keys", "last", "lastIndexOf", "map", "max",
"methods", "min", "pluck", "reduce", "reduceRight", "reject", "select",
"size", "some", "sortBy", "sortedIndex", "template", "toArray", "uniq",