Add a 'keys' function. Fixes #4.

This commit is contained in:
Stephen Dolan committed 2012-10-20 00:26:37 +01:00
1 parent afec2544f1
commit 32e1b114df
2 files changed
+38

No files matched your search

+4
View File
@@ -223,6 +223,10 @@ null
[[], {}, [1,2], {"a":42}, "asdf"]
[0, 0, 2, 1, 4]
map(keys)
[{}, {"abcd":1,"abc":2,"abcde":3}, {"x":1, "z": 3, "y":2}]
[[], ["abc","abcd","abcde"], ["x","y","z"]]
[1,2,empty,3,empty,4]
null
[1,2,3,4]