mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
build in functionality to at, add string support, optimize, and add more tests
Former-commit-id: 951ef27e55fff5a70d09916b55b85f9e725f751a
This commit is contained in:
@@ -681,6 +681,12 @@
|
||||
test('no list should return an empty array', function() {
|
||||
deepEqual(_.at(['a', 'b', 'c']), [] );
|
||||
});
|
||||
test('should work on strings', function() {
|
||||
deepEqual(_.at("helio", [0,3]), ['h', 'i']);
|
||||
});
|
||||
test('should work with multple args', function() {
|
||||
deepEqual(_.at(['a','b','c','d'], 0, 2, 3), ['a', 'c', 'd']);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user