Closed bhargavvader closed 9 years ago
Looks good @bhargavvader!
Can you add some test coverage for these changes? https://github.com/differentmatt/filbert/blob/master/test/spec/lists_spec.js
You can run the tests via grunt test
from the repository root.
@differentmatt Added the test cases and a commit that allows passing a key function (as in Python3). Fixes #38 and #26.
Awesome, thanks @bhargavvader!
Added list.sort() method. Checks if the list has numbers and sorts them in ascending order or lexicographically otherwise.