@@ 5594-5594 (lines=1) @@ | ||
5591 | * _.takeRight([1, 2, 3], 0); |
|
5592 | * // => [] |
|
5593 | */ |
|
5594 | function takeRight(array, n, guard) { |
|
5595 | var length = array ? array.length : 0; |
|
5596 | if (!length) { |
|
5597 | return []; |
|
@@ 4770-4770 (lines=1) @@ | ||
4767 | * _.dropRight([1, 2, 3], 0); |
|
4768 | * // => [1, 2, 3] |
|
4769 | */ |
|
4770 | function dropRight(array, n, guard) { |
|
4771 | var length = array ? array.length : 0; |
|
4772 | if (!length) { |
|
4773 | return []; |