Code Duplication    Length = 1-1 lines in 2 locations

node_modules/@sailshq/lodash/lib/index.js 2 locations

@@ 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 [];