Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | ·ab489f52a05cb6f576a7f31bbb51ac3b·115632·javascript·optional·libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb | 1 | ·ab489f52a05cb6f576a7f31bbb51ac3b·115632·javascript·optional·libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb |
2 | · | 2 | ·d1434bbca9c2a3d566e058522b9b0826·120440·javascript·optional·node-underscore_1.13.4~dfsg+~1.11.4-3_all.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2023-01-02·04:09:24.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2023-01-02·04:09:24.000000·debian-binary |
2 | -rw-r--r--···0········0········0····11 | 2 | -rw-r--r--···0········0········0····11636·2023-01-02·04:09:24.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···1086 | 3 | -rw-r--r--···0········0········0···108612·2023-01-02·04:09:24.000000·data.tar.xz |
Offset 12, 32 lines modified | Offset 12, 32 lines modified | ||
12 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/ | 12 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/ |
13 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/ | 13 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/ |
14 | -rw-r--r--···0·root·········(0)·root·········(0)·····1697·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/index.d.mts | 14 | -rw-r--r--···0·root·········(0)·root·········(0)·····1697·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/index.d.mts |
15 | -rw-r--r--···0·root·········(0)·root·········(0)···242854·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/index.d.ts | 15 | -rw-r--r--···0·root·········(0)·root·········(0)···242854·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/index.d.ts |
16 | -rw-r--r--···0·root·········(0)·root·········(0)·····2254·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/package.json | 16 | -rw-r--r--···0·root·········(0)·root·········(0)·····2254·2023-01-02·04:09:24.000000·./usr/share/nodejs/@types/underscore/package.json |
17 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/ | 17 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/ |
18 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/ | 18 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/ |
19 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 19 | -rw-r--r--···0·root·········(0)·root·········(0)······715·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index.js |
20 | -rw-r--r--···0·root·········(0)·root·········(0)·····1085·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index10.js | 20 | -rw-r--r--···0·root·········(0)·root·········(0)·····1085·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index10.js |
21 | -rw-r--r--···0·root·········(0)·root·········(0)······728·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index100.js | 21 | -rw-r--r--···0·root·········(0)·root·········(0)······728·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index100.js |
22 | -rw-r--r--···0·root·········(0)·root·········(0)······149·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index101.js | 22 | -rw-r--r--···0·root·········(0)·root·········(0)······149·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index101.js |
23 | -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index102.js | 23 | -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index102.js |
24 | -rw-r--r--···0·root·········(0)·root·········(0)······445·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index103.js | ||
24 | -rw-r--r--···0·root·········(0)·root·········(0)······114·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index10 | 25 | -rw-r--r--···0·root·········(0)·root·········(0)······114·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index104.js |
25 | -rw-r--r--···0·root·········(0)·root·········(0)······446·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index104.js | ||
26 | -rw-r--r--···0·root·········(0)·root·········(0)······554·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index105.js | 26 | -rw-r--r--···0·root·········(0)·root·········(0)······554·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index105.js |
27 | -rw-r--r--···0·root·········(0)·root·········(0)······405·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index106.js | 27 | -rw-r--r--···0·root·········(0)·root·········(0)······405·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index106.js |
28 | -rw-r--r--···0·root·········(0)·root·········(0)······292·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index107.js | ||
29 | -rw-r--r--···0·root·········(0)·root·········(0)······577·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index10 | 28 | -rw-r--r--···0·root·········(0)·root·········(0)······577·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index107.js |
30 | -rw-r--r--···0·root·········(0)·root·········(0)······571·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index10 | 29 | -rw-r--r--···0·root·········(0)·root·········(0)······571·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index108.js |
30 | -rw-r--r--···0·root·········(0)·root·········(0)······292·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index109.js | ||
31 | -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index11.js | 31 | -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index11.js |
32 | -rw-r--r--···0·root·········(0)·root·········(0)······327·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index110.js | 32 | -rw-r--r--···0·root·········(0)·root·········(0)······327·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index110.js |
33 | -rw-r--r--···0·root·········(0)·root·········(0)······985·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index111.js | 33 | -rw-r--r--···0·root·········(0)·root·········(0)······985·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index111.js |
34 | -rw-r--r--···0·root·········(0)·root·········(0)······464·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index112.js | 34 | -rw-r--r--···0·root·········(0)·root·········(0)······464·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index112.js |
35 | -rw-r--r--···0·root·········(0)·root·········(0)······573·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index113.js | ||
36 | -rw-r--r--···0·root·········(0)·root·········(0)······981·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index11 | 35 | -rw-r--r--···0·root·········(0)·root·········(0)······981·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index113.js |
36 | -rw-r--r--···0·root·········(0)·root·········(0)······573·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index114.js | ||
37 | -rw-r--r--···0·root·········(0)·root·········(0)······220·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index115.js | 37 | -rw-r--r--···0·root·········(0)·root·········(0)······220·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index115.js |
38 | -rw-r--r--···0·root·········(0)·root·········(0)······134·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index116.js | 38 | -rw-r--r--···0·root·········(0)·root·········(0)······134·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index116.js |
39 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index117.js | 39 | -rw-r--r--···0·root·········(0)·root·········(0)······192·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index117.js |
40 | -rw-r--r--···0·root·········(0)·root·········(0)······580·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index118.js | 40 | -rw-r--r--···0·root·········(0)·root·········(0)······580·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index118.js |
41 | -rw-r--r--···0·root·········(0)·root·········(0)······681·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index119.js | 41 | -rw-r--r--···0·root·········(0)·root·········(0)······681·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index119.js |
42 | -rw-r--r--···0·root·········(0)·root·········(0)······331·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index12.js | 42 | -rw-r--r--···0·root·········(0)·root·········(0)······331·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index12.js |
43 | -rw-r--r--···0·root·········(0)·root·········(0)······252·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index120.js | 43 | -rw-r--r--···0·root·········(0)·root·········(0)······252·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index120.js |
Offset 45, 27 lines modified | Offset 45, 27 lines modified | ||
45 | -rw-r--r--···0·root·········(0)·root·········(0)·····1001·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index122.js | 45 | -rw-r--r--···0·root·········(0)·root·········(0)·····1001·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index122.js |
46 | -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index123.js | 46 | -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index123.js |
47 | -rw-r--r--···0·root·········(0)·root·········(0)······840·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index124.js | 47 | -rw-r--r--···0·root·········(0)·root·········(0)······840·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index124.js |
48 | -rw-r--r--···0·root·········(0)·root·········(0)······237·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index125.js | 48 | -rw-r--r--···0·root·········(0)·root·········(0)······237·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index125.js |
49 | -rw-r--r--···0·root·········(0)·root·········(0)······384·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index126.js | 49 | -rw-r--r--···0·root·········(0)·root·········(0)······384·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index126.js |
50 | -rw-r--r--···0·root·········(0)·root·········(0)······296·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index127.js | 50 | -rw-r--r--···0·root·········(0)·root·········(0)······296·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index127.js |
51 | -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index128.js | 51 | -rw-r--r--···0·root·········(0)·root·········(0)······270·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index128.js |
52 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 52 | -rw-r--r--···0·root·········(0)·root·········(0)······640·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index129.js |
53 | -rw-r--r--···0·root·········(0)·root·········(0)······233·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index13.js | 53 | -rw-r--r--···0·root·········(0)·root·········(0)······233·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index13.js |
54 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 54 | -rw-r--r--···0·root·········(0)·root·········(0)······200·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index130.js |
55 | -rw-r--r--···0·root·········(0)·root·········(0)······185·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index131.js | 55 | -rw-r--r--···0·root·········(0)·root·········(0)······185·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index131.js |
56 | -rw-r--r--···0·root·········(0)·root·········(0)······272·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index132.js | 56 | -rw-r--r--···0·root·········(0)·root·········(0)······272·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index132.js |
57 | -rw-r--r--···0·root·········(0)·root·········(0)······348·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index133.js | 57 | -rw-r--r--···0·root·········(0)·root·········(0)······348·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index133.js |
58 | -rw-r--r--···0·root·········(0)·root·········(0)·····1219·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index134.js | 58 | -rw-r--r--···0·root·········(0)·root·········(0)·····1219·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index134.js |
59 | -rw-r--r--···0·root·········(0)·root·········(0)······785·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index135.js | 59 | -rw-r--r--···0·root·········(0)·root·········(0)······785·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index135.js |
60 | -rw-r--r--···0·root·········(0)·root·········(0)······982·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index136.js | 60 | -rw-r--r--···0·root·········(0)·root·········(0)······982·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index136.js |
61 | -rw-r--r--···0·root·········(0)·root·········(0)······161·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index137.js | 61 | -rw-r--r--···0·root·········(0)·root·········(0)······161·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index137.js |
62 | -rw-r--r--···0·root·········(0)·root·········(0)······264·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index138.js | 62 | -rw-r--r--···0·root·········(0)·root·········(0)······264·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index138.js |
63 | -rw-r--r--···0·root·········(0)·root·········(0)······556·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index139.js | 63 | -rw-r--r--···0·root·········(0)·root·········(0)······556·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index139.js |
64 | -rw-r--r--···0·root·········(0)·root·········(0)······60 | 64 | -rw-r--r--···0·root·········(0)·root·········(0)······609·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index14.js |
65 | -rw-r--r--···0·root·········(0)·root·········(0)······722·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index140.js | 65 | -rw-r--r--···0·root·········(0)·root·········(0)······722·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index140.js |
66 | -rw-r--r--···0·root·········(0)·root·········(0)······587·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index141.js | 66 | -rw-r--r--···0·root·········(0)·root·········(0)······587·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index141.js |
67 | -rw-r--r--···0·root·········(0)·root·········(0)······338·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index142.js | 67 | -rw-r--r--···0·root·········(0)·root·········(0)······338·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index142.js |
68 | -rw-r--r--···0·root·········(0)·root·········(0)·····3476·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index143.js | 68 | -rw-r--r--···0·root·········(0)·root·········(0)·····3476·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index143.js |
69 | -rw-r--r--···0·root·········(0)·root·········(0)······385·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index144.js | 69 | -rw-r--r--···0·root·········(0)·root·········(0)······385·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index144.js |
70 | -rw-r--r--···0·root·········(0)·root·········(0)·····1567·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index145.js | 70 | -rw-r--r--···0·root·········(0)·root·········(0)·····1567·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index145.js |
71 | -rw-r--r--···0·root·········(0)·root·········(0)······313·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index146.js | 71 | -rw-r--r--···0·root·········(0)·root·········(0)······313·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index146.js |
Offset 84, 51 lines modified | Offset 84, 51 lines modified | ||
84 | -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index158.js | 84 | -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index158.js |
85 | -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index159.js | 85 | -rw-r--r--···0·root·········(0)·root·········(0)······329·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index159.js |
86 | -rw-r--r--···0·root·········(0)·root·········(0)······207·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index16.js | 86 | -rw-r--r--···0·root·········(0)·root·········(0)······207·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index16.js |
87 | -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index160.js | 87 | -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index160.js |
88 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index17.js | 88 | -rw-r--r--···0·root·········(0)·root·········(0)······191·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index17.js |
89 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index18.js | 89 | -rw-r--r--···0·root·········(0)·root·········(0)······491·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index18.js |
90 | -rw-r--r--···0·root·········(0)·root·········(0)······240·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index19.js | 90 | -rw-r--r--···0·root·········(0)·root·········(0)······240·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index19.js |
91 | -rw-r--r--···0·root·········(0)·root·········(0)······715·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index2.js | ||
92 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 91 | -rw-r--r--···0·root·········(0)·root·········(0)······246·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index2.js |
93 | -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index21.js | ||
94 | -rw-r--r--···0·root·········(0)·root·········(0)······119·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index2 | 92 | -rw-r--r--···0·root·········(0)·root·········(0)······119·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index20.js |
93 | -rw-r--r--···0·root·········(0)·root·········(0)······436·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index21.js | ||
94 | -rw-r--r--···0·root·········(0)·root·········(0)······289·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index22.js | ||
95 | -rw-r--r--···0·root·········(0)·root·········(0)·····1708·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index23.js | 95 | -rw-r--r--···0·root·········(0)·root·········(0)·····1708·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index23.js |
96 | -rw-r--r--···0·root·········(0)·root·········(0)······2 | 96 | -rw-r--r--···0·root·········(0)·root·········(0)······227·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index24.js |
97 | -rw-r--r--···0·root·········(0)·root·········(0)······888·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index25.js | 97 | -rw-r--r--···0·root·········(0)·root·········(0)······888·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index25.js |
98 | -rw-r--r--···0·root·········(0)·root·········(0)·····2593·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index26.js | 98 | -rw-r--r--···0·root·········(0)·root·········(0)·····2593·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index26.js |
99 | -rw-r--r--···0·root·········(0)·root·········(0)······255·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index27.js | 99 | -rw-r--r--···0·root·········(0)·root·········(0)······255·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index27.js |
100 | -rw-r--r--···0·root·········(0)·root·········(0)······555·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index28.js | 100 | -rw-r--r--···0·root·········(0)·root·········(0)······555·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index28.js |
101 | -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index29.js | 101 | -rw-r--r--···0·root·········(0)·root·········(0)······293·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index29.js |
102 | -rw-r--r--···0·root·········(0)·root·········(0)····· | 102 | -rw-r--r--···0·root·········(0)·root·········(0)·····1429·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index3.js |
103 | -rw-r--r--···0·root·········(0)·root·········(0)······401·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index30.js | 103 | -rw-r--r--···0·root·········(0)·root·········(0)······401·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index30.js |
104 | -rw-r--r--···0·root·········(0)·root·········(0)······263·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index31.js | 104 | -rw-r--r--···0·root·········(0)·root·········(0)······263·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index31.js |
105 | -rw-r--r--···0·root·········(0)·root·········(0)······187·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index32.js | 105 | -rw-r--r--···0·root·········(0)·root·········(0)······187·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index32.js |
106 | -rw-r--r--···0·root·········(0)·root·········(0)······268·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index33.js | 106 | -rw-r--r--···0·root·········(0)·root·········(0)······268·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index33.js |
107 | -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index34.js | 107 | -rw-r--r--···0·root·········(0)·root·········(0)······411·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index34.js |
108 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index35.js | 108 | -rw-r--r--···0·root·········(0)·root·········(0)······356·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index35.js |
109 | -rw-r--r--···0·root·········(0)·root·········(0)······532·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index36.js | 109 | -rw-r--r--···0·root·········(0)·root·········(0)······532·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index36.js |
110 | -rw-r--r--···0·root·········(0)·root·········(0)······631·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index37.js | ||
111 | -rw-r--r--···0·root·········(0)·root·········(0)······234·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index3 | 110 | -rw-r--r--···0·root·········(0)·root·········(0)······234·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index37.js |
111 | -rw-r--r--···0·root·········(0)·root·········(0)······631·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index38.js | ||
112 | -rw-r--r--···0·root·········(0)·root·········(0)······413·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index39.js | 112 | -rw-r--r--···0·root·········(0)·root·········(0)······413·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index39.js |
113 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 113 | -rw-r--r--···0·root·········(0)·root·········(0)······574·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index4.js |
114 | -rw-r--r--···0·root·········(0)·root·········(0)······288·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index40.js | 114 | -rw-r--r--···0·root·········(0)·root·········(0)······288·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index40.js |
115 | -rw-r--r--···0·root·········(0)·root·········(0)······182·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index41.js | ||
116 | -rw-r--r--···0·root·········(0)·root·········(0)······456·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index4 | 115 | -rw-r--r--···0·root·········(0)·root·········(0)······456·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index41.js |
116 | -rw-r--r--···0·root·········(0)·root·········(0)······182·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index42.js | ||
117 | -rw-r--r--···0·root·········(0)·root·········(0)······205·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index43.js | 117 | -rw-r--r--···0·root·········(0)·root·········(0)······205·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index43.js |
118 | -rw-r--r--···0·root·········(0)·root·········(0)······406·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index44.js | 118 | -rw-r--r--···0·root·········(0)·root·········(0)······406·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index44.js |
119 | -rw-r--r--···0·root·········(0)·root·········(0)······378·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index45.js | 119 | -rw-r--r--···0·root·········(0)·root·········(0)······378·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index45.js |
120 | -rw-r--r--···0·root·········(0)·root·········(0)······40 | 120 | -rw-r--r--···0·root·········(0)·root·········(0)······404·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index46.js |
121 | -rw-r--r--···0·root·········(0)·root·········(0)·····1291·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index47.js | 121 | -rw-r--r--···0·root·········(0)·root·········(0)·····1291·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index47.js |
122 | -rw-r--r--···0·root·········(0)·root·········(0)······199·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index48.js | 122 | -rw-r--r--···0·root·········(0)·root·········(0)······199·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index48.js |
123 | -rw-r--r--···0·root·········(0)·root·········(0)······248·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index49.js | 123 | -rw-r--r--···0·root·········(0)·root·········(0)······248·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index49.js |
124 | -rw-r--r--···0·root·········(0)·root·········(0)·····1429·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index5.js | ||
125 | -rw-r--r--···0·root·········(0)·root·········(0)······ | 124 | -rw-r--r--···0·root·········(0)·root·········(0)······434·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index5.js |
126 | -rw-r--r--···0·root·········(0)·root·········(0)······477·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index5 | 125 | -rw-r--r--···0·root·········(0)·root·········(0)······477·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index50.js |
127 | -rw-r--r--···0·root·········(0)·root·········(0)······743·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index5 | 126 | -rw-r--r--···0·root·········(0)·root·········(0)······743·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index51.js |
127 | -rw-r--r--···0·root·········(0)·root·········(0)······337·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index52.js | ||
128 | -rw-r--r--···0·root·········(0)·root·········(0)······198·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index53.js | 128 | -rw-r--r--···0·root·········(0)·root·········(0)······198·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index53.js |
129 | -rw-r--r--···0·root·········(0)·root·········(0)······547·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index54.js | 129 | -rw-r--r--···0·root·········(0)·root·········(0)······547·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index54.js |
130 | -rw-r--r--···0·root·········(0)·root·········(0)······211·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index55.js | 130 | -rw-r--r--···0·root·········(0)·root·········(0)······211·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index55.js |
131 | -rw-r--r--···0·root·········(0)·root·········(0)······320·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index56.js | 131 | -rw-r--r--···0·root·········(0)·root·········(0)······320·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index56.js |
132 | -rw-r--r--···0·root·········(0)·root·········(0)······383·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index57.js | 132 | -rw-r--r--···0·root·········(0)·root·········(0)······383·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index57.js |
133 | -rw-r--r--···0·root·········(0)·root·········(0)······386·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index58.js | 133 | -rw-r--r--···0·root·········(0)·root·········(0)······386·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index58.js |
134 | -rw-r--r--···0·root·········(0)·root·········(0)······210·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index59.js | 134 | -rw-r--r--···0·root·········(0)·root·········(0)······210·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index59.js |
Offset 143, 20 lines modified | Offset 143, 20 lines modified | ||
143 | -rw-r--r--···0·root·········(0)·root·········(0)······367·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index67.js | 143 | -rw-r--r--···0·root·········(0)·root·········(0)······367·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index67.js |
144 | -rw-r--r--···0·root·········(0)·root·········(0)······557·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index68.js | 144 | -rw-r--r--···0·root·········(0)·root·········(0)······557·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index68.js |
145 | -rw-r--r--···0·root·········(0)·root·········(0)······162·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index69.js | 145 | -rw-r--r--···0·root·········(0)·root·········(0)······162·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index69.js |
146 | -rw-r--r--···0·root·········(0)·root·········(0)······662·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index7.js | 146 | -rw-r--r--···0·root·········(0)·root·········(0)······662·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index7.js |
147 | -rw-r--r--···0·root·········(0)·root·········(0)······845·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index70.js | 147 | -rw-r--r--···0·root·········(0)·root·········(0)······845·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index70.js |
148 | -rw-r--r--···0·root·········(0)·root·········(0)·····8189·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index71.js | 148 | -rw-r--r--···0·root·········(0)·root·········(0)·····8189·2023-01-02·04:09:24.000000·./usr/share/nodejs/underscore/amd/index71.js |
Max diff block lines reached; 27008/45962 bytes (58.76%) of diff not shown. |
Offset 1, 21 lines modified | Offset 1, 15 lines modified | ||
1 | define(['./index9 | 1 | define(['./index69',·'./index89',·'./index94',·'./index79',·'./index110',·'./index126',·'./index25'],·(function(identity,·isFunction,·isObject,·isArray,·matcher,·property,·_optimizeCb)·{ |
2 | ····//·Create·a·naked·function·reference·for·surrogate-prototype-swapping. | ||
3 | ····function·ctor()·{ | ||
4 | ····· | 2 | ····//·An·internal·function·to·generate·callbacks·that·can·be·applied·to·each |
3 | ····//·element·in·a·collection,·returning·the·desired·result·—·either·`_.identity`, | ||
4 | ····//·an·arbitrary·callback,·a·property·matcher,·or·a·property·accessor. | ||
5 | ····function·baseIteratee(value,·context,·argCount)·{ | ||
6 | ········if·(value·==·null)·return·identity; | ||
7 | ········if·(isFunction(value))·return·_optimizeCb(value,·context,·argCount); | ||
8 | ········if·(isObject(value)·&&·!isArray(value))·return·matcher(value); | ||
9 | ········return·property(value); | ||
5 | ····} | 10 | ····} |
6 | ····//·An·internal·function·for·creating·a·new·object·that·inherits·from·another. | ||
7 | ····function·baseCreate(prototype)·{ | ||
8 | ········if·(!isObject(prototype))·return·{}; | ||
9 | ········if·(_setup.nativeCreate)·return·_setup.nativeCreate(prototype); | ||
10 | ········var·Ctor·=·ctor(); | ||
11 | ········Ctor.prototype·=·prototype; | ||
12 | ········var·result·=·new·Ctor; | ||
13 | ········Ctor.prototype·=·null; | ||
14 | ········return·result; | ||
15 | ····} | ||
16 | ····return·base | 11 | ····return·baseIteratee; |
17 | })); | 12 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index2 | 1 | define(['./index21',·'./index105',·'./index25'],·(function(_isArrayLike,·keys,·_optimizeCb)·{ |
2 | ····//·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right. | 2 | ····//·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right. |
3 | ····function·createReduce(dir)·{ | 3 | ····function·createReduce(dir)·{ |
4 | ········//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than | 4 | ········//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than |
5 | ········//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991) | 5 | ········//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991) |
6 | ········var·reducer·=·function(obj,·iteratee,·memo,·initial)·{ | 6 | ········var·reducer·=·function(obj,·iteratee,·memo,·initial)·{ |
7 | ············var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), | 7 | ············var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index26',·'./index82',·'./index43',·'./index2 | 1 | define(['./index26',·'./index82',·'./index43',·'./index22'],·(function(_setup,·isDataView,·constant,·_isBufferLike)·{ |
2 | ····//·Is·a·given·value·a·typed·array? | 2 | ····//·Is·a·given·value·a·typed·array? |
3 | ····var·typedArrayPattern·=·/\[object·((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/; | 3 | ····var·typedArrayPattern·=·/\[object·((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/; |
4 | ····function·isTypedArray(obj)·{ | 4 | ····function·isTypedArray(obj)·{ |
5 | ········//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available. | 5 | ········//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available. |
6 | ········//·Otherwise,·fall·back·on·the·above·regular·expression. | 6 | ········//·Otherwise,·fall·back·on·the·above·regular·expression. |
Offset 1, 7 lines modified | Offset 1, 13 lines modified | ||
1 | define(['./index | 1 | define(['./index150',·'./index'],·(function(underscore,·_baseIteratee)·{ |
2 | ···· | 2 | ····//·External·wrapper·for·our·callback·generator.·Users·may·customize |
3 | ····//·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles. | ||
4 | ····//·This·abstraction·hides·the·internal-only·`argCount`·argument. | ||
5 | ····function·iteratee(value,·context)·{ | ||
6 | ········return·_baseIteratee(value,·context,·Infinity); | ||
7 | ····} | ||
8 | ····underscore.iteratee·=·iteratee; | ||
3 | ····return·i | 9 | ····return·iteratee; |
4 | })); | 10 | })); |
Offset 1, 13 lines modified | Offset 1, 7 lines modified | ||
1 | define(['./index | 1 | define(['./index29'],·(function(_tagTester)·{ |
2 | ····var·isWeakSet·=·_tagTester('WeakSet'); | ||
2 | ····//·External·wrapper·for·our·callback·generator.·Users·may·customize | ||
3 | ····//·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles. | ||
4 | ····//·This·abstraction·hides·the·internal-only·`argCount`·argument. | ||
5 | ····function·iteratee(value,·context)·{ | ||
6 | ········return·_baseIteratee(value,·context,·Infinity); | ||
7 | ····} | ||
8 | ····underscore.iteratee·=·iteratee; | ||
9 | ····return·i | 3 | ····return·isWeakSet; |
10 | })); | 4 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index9 | 1 | define(['./index94',·'./index26',·'./index19',·'./index3'],·(function(isObject,·_setup,·_has,·_collectNonEnumProps)·{ |
2 | ····//·Retrieve·the·names·of·an·object's·own·properties. | 2 | ····//·Retrieve·the·names·of·an·object's·own·properties. |
3 | ····//·Delegates·to·**ECMAScript·5**'s·native·`Object.keys`. | 3 | ····//·Delegates·to·**ECMAScript·5**'s·native·`Object.keys`. |
4 | ····function·keys(obj)·{ | 4 | ····function·keys(obj)·{ |
5 | ········if·(!isObject(obj))·return·[]; | 5 | ········if·(!isObject(obj))·return·[]; |
6 | ········if·(_setup.nativeKeys)·return·_setup.nativeKeys(obj); | 6 | ········if·(_setup.nativeKeys)·return·_setup.nativeKeys(obj); |
7 | ········var·keys·=·[]; | 7 | ········var·keys·=·[]; |
Offset 1, 9 lines modified | Offset 1, 18 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index21',·'./index105'],·(function(_cb,·_isArrayLike,·keys)·{ |
2 | ····//·Return·the·position·of·the·last·occurrence·of·an·item·in·an·array, | ||
3 | ····//·or·-1·if·the·item·is·not·included·in·the·array. | ||
4 | ···· | 2 | ····//·Return·the·results·of·applying·the·iteratee·to·each·element. |
3 | ····function·map(obj,·iteratee,·context)·{ | ||
4 | ········iteratee·=·_cb(iteratee,·context); | ||
5 | ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), | ||
6 | ············length·=·(_keys·||·obj).length, | ||
7 | ············results·=·Array(length); | ||
8 | ········for·(var·index·=·0;·index·<·length;·index++)·{ | ||
9 | ············var·currentKey·=·_keys·?·_keys[index]·:·index; | ||
10 | ············results[index]·=·iteratee(obj[currentKey],·currentKey,·obj); | ||
11 | ········} | ||
12 | ········return·results; | ||
13 | ····} | ||
5 | ····return· | 14 | ····return·map; |
6 | })); | 15 | })); |
Offset 1, 18 lines modified | Offset 1, 19 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index105'],·(function(_cb,·keys)·{ |
2 | ····//·Return·the·results·of·applying·the·iteratee·to·each·element. | 2 | ····//·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`. |
3 | ····//·In·contrast·to·`_.map`·it·returns·an·object. | ||
3 | ····function·map(obj,·iteratee,·context)·{ | 4 | ····function·mapObject(obj,·iteratee,·context)·{ |
4 | ········iteratee·=·_cb(iteratee,·context); | 5 | ········iteratee·=·_cb(iteratee,·context); |
5 | ········var·_keys·=· | 6 | ········var·_keys·=·keys(obj), |
6 | ············length·=· | 7 | ············length·=·_keys.length, |
7 | ············results·=· | 8 | ············results·=·{}; |
8 | ········for·(var·index·=·0;·index·<·length;·index++)·{ | 9 | ········for·(var·index·=·0;·index·<·length;·index++)·{ |
9 | ············var·currentKey·=·_keys | 10 | ············var·currentKey·=·_keys[index]; |
10 | ············results[ | 11 | ············results[currentKey]·=·iteratee(obj[currentKey],·currentKey,·obj); |
11 | ········} | 12 | ········} |
12 | ········return·results; | 13 | ········return·results; |
13 | ····} | 14 | ····} |
14 | ····return·map; | 15 | ····return·mapObject; |
15 | })); | 16 | })); |
Offset 1, 19 lines modified | Offset 1, 9 lines modified | ||
1 | define(['./index | 1 | define(['./index61',·'./index8'],·(function(findLastIndex,·_createIndexFinder)·{ |
2 | ····//·Return·the·position·of·the·last·occurrence·of·an·item·in·an·array, | ||
3 | ····//·or·-1·if·the·item·is·not·included·in·the·array. | ||
4 | ····var·lastIndexOf·=·_createIndexFinder(-1,·findLastIndex); | ||
2 | ····//·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`. | ||
3 | ····//·In·contrast·to·`_.map`·it·returns·an·object. | ||
4 | ····function·mapObject(obj,·iteratee,·context)·{ | ||
5 | ········iteratee·=·_cb(iteratee,·context); | ||
6 | ········var·_keys·=·keys(obj), | ||
7 | ············length·=·_keys.length, | ||
8 | ············results·=·{}; | ||
9 | ········for·(var·index·=·0;·index·<·length;·index++)·{ | ||
10 | ············var·currentKey·=·_keys[index]; | ||
11 | ············results[currentKey]·=·iteratee(obj[currentKey],·currentKey,·obj); | ||
12 | ········} | ||
13 | ········return·results; | ||
14 | ····} | ||
15 | ····return· | 5 | ····return·lastIndexOf; |
16 | })); | 6 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index2 | 1 | define(['./index21',·'./index156',·'./index5',·'./index51'],·(function(_isArrayLike,·values,·_cb,·each)·{ |
2 | ····//·Return·the·maximum·element·(or·element-based·computation). | 2 | ····//·Return·the·maximum·element·(or·element-based·computation). |
3 | ····function·max(obj,·iteratee,·context)·{ | 3 | ····function·max(obj,·iteratee,·context)·{ |
4 | ········var·result·=·-Infinity, | 4 | ········var·result·=·-Infinity, |
5 | ············lastComputed·=·-Infinity, | 5 | ············lastComputed·=·-Infinity, |
6 | ············value,·computed; | 6 | ············value,·computed; |
7 | ········if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ | 7 | ········if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ |
Offset 1, 18 lines modified | Offset 1, 31 lines modified | ||
1 | define(['./index | 1 | define(['./index21',·'./index156',·'./index5',·'./index51'],·(function(_isArrayLike,·values,·_cb,·each)·{ |
2 | ····//·Add·your·own·custom·functions·to·the·Underscore·object. | ||
3 | ····function·mixin(obj)·{ | ||
4 | ········each(functions(obj),·function(name)·{ | ||
5 | ············var·func·=·underscore[name]·=·obj[name]; | ||
6 | ············underscore.prototype[name]·=·function()·{ | ||
7 | ················var·args·=·[this._wrapped]; | ||
8 | ················_setup.push.apply(args,·arguments); | ||
9 | ···· | 2 | ····//·Return·the·minimum·element·(or·element-based·computation). |
3 | ····function·min(obj,·iteratee,·context)·{ | ||
4 | ········var·result·=·Infinity, | ||
5 | ············lastComputed·=·Infinity, | ||
6 | ············value,·computed; | ||
7 | ········if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ | ||
8 | ············obj·=·_isArrayLike(obj)·?·obj·:·values(obj); | ||
9 | ············for·(var·i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ | ||
10 | ················value·=·obj[i]; | ||
11 | ················if·(value·!=·null·&&·value·<·result)·{ | ||
12 | ····················result·=·value; | ||
13 | ················} | ||
14 | ············} | ||
15 | ········}·else·{ | ||
16 | ············iteratee·=·_cb(iteratee,·context); | ||
17 | ············each(obj,·function(v,·index,·list)·{ | ||
18 | ················computed·=·iteratee(v,·index,·list); | ||
19 | ················if·(computed·<·lastComputed·||·(computed·===·Infinity·&&·result·===·Infinity))·{ | ||
20 | ····················result·=·v; | ||
21 | ····················lastComputed·=·computed; | ||
22 | ················} | ||
10 | ············}; | 23 | ············}); |
11 | ········} | 24 | ········} |
12 | ········return· | 25 | ········return·result; |
13 | ····} | 26 | ····} |
14 | ····return·mi | 27 | ····return·min; |
15 | })); | 28 | })); |
Offset 1, 31 lines modified | Offset 1, 18 lines modified | ||
1 | define(['./index | 1 | define(['./index150',·'./index51',·'./index65',·'./index26',·'./index2'],·(function(underscore,·each,·functions,·_setup,·_chainResult)·{ |
2 | ····//·Add·your·own·custom·functions·to·the·Underscore·object. | ||
3 | ····function·mixin(obj)·{ | ||
4 | ········each(functions(obj),·function(name)·{ | ||
5 | ············var·func·=·underscore[name]·=·obj[name]; | ||
6 | ············underscore.prototype[name]·=·function()·{ | ||
7 | ················var·args·=·[this._wrapped]; | ||
8 | ················_setup.push.apply(args,·arguments); | ||
9 | ················return·_chainResult(this,·func.apply(underscore,·args)); | ||
2 | ····//·Return·the·minimum·element·(or·element-based·computation). | ||
3 | ····function·min(obj,·iteratee,·context)·{ | ||
4 | ········var·result·=·Infinity, | ||
5 | ············lastComputed·=·Infinity, | ||
6 | ············value,·computed; | ||
7 | ········if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ | ||
8 | ············obj·=·_isArrayLike(obj)·?·obj·:·values(obj); | ||
9 | ············for·(var·i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ | ||
10 | ················value·=·obj[i]; | ||
11 | ················if·(value·!=·null·&&·value·<·result)·{ | ||
12 | ····················result·=·value; | ||
13 | ················} | ||
14 | ············} | ||
15 | ········}·else·{ | ||
16 | ············iteratee·=·_cb(iteratee,·context); | ||
17 | ············each(obj,·function(v,·index,·list)·{ | ||
18 | ················computed·=·iteratee(v,·index,·list); | ||
19 | ················if·(computed·<·lastComputed·||·(computed·===·Infinity·&&·result·===·Infinity))·{ | ||
20 | ····················result·=·v; | ||
21 | ····················lastComputed·=·computed; | ||
22 | ················} | ||
23 | ············} | 10 | ············}; |
24 | ········} | 11 | ········}); |
25 | ········return· | 12 | ········return·underscore; |
26 | ····} | 13 | ····} |
27 | ····return·min; | 14 | ····return·mixin; |
28 | })); | 15 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index134',·'./index89',·'./index115',·'./index10 | 1 | define(['./index134',·'./index89',·'./index115',·'./index107',·'./index15',·'./index44',·'./index124'],·(function(restArguments,·isFunction,·negate,·map,·_flatten,·contains,·pick)·{ |
2 | ····//·Return·a·copy·of·the·object·without·the·disallowed·properties. | 2 | ····//·Return·a·copy·of·the·object·without·the·disallowed·properties. |
3 | ····var·omit·=·restArguments(function(obj,·keys)·{ | 3 | ····var·omit·=·restArguments(function(obj,·keys)·{ |
4 | ········var·iteratee·=·keys[0], | 4 | ········var·iteratee·=·keys[0], |
5 | ············context; | 5 | ············context; |
6 | ········if·(isFunction(iteratee))·{ | 6 | ········if·(isFunction(iteratee))·{ |
7 | ············iteratee·=·negate(iteratee); | 7 | ············iteratee·=·negate(iteratee); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index134',·'./index89',·'./index25',·'./index34',·'./index2 | 1 | define(['./index134',·'./index89',·'./index25',·'./index34',·'./index24',·'./index15'],·(function(restArguments,·isFunction,·_optimizeCb,·allKeys,·_keyInObj,·_flatten)·{ |
2 | ····//·Return·a·copy·of·the·object·only·containing·the·allowed·properties. | 2 | ····//·Return·a·copy·of·the·object·only·containing·the·allowed·properties. |
3 | ····var·pick·=·restArguments(function(obj,·keys)·{ | 3 | ····var·pick·=·restArguments(function(obj,·keys)·{ |
4 | ········var·result·=·{}, | 4 | ········var·result·=·{}, |
5 | ············iteratee·=·keys[0]; | 5 | ············iteratee·=·keys[0]; |
6 | ········if·(obj·==·null)·return·result; | 6 | ········if·(obj·==·null)·return·result; |
7 | ········if·(isFunction(iteratee))·{ | 7 | ········if·(isFunction(iteratee))·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index10 | 1 | define(['./index107',·'./index126'],·(function(map,·property)·{ |
2 | ····//·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property. | 2 | ····//·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property. |
3 | ····function·pluck(obj,·key)·{ | 3 | ····function·pluck(obj,·key)·{ |
4 | ········return·map(obj,·property(key)); | 4 | ········return·map(obj,·property(key)); |
5 | ····} | 5 | ····} |
6 | ····return·pluck; | 6 | ····return·pluck; |
Offset 1, 9 lines modified | Offset 1, 27 lines modified | ||
1 | define( | 1 | define((function()·{ |
2 | ····//·**Reduce**·builds·up·a·single·result·from·a·list·of·values,·aka·`inject`, | ||
3 | ····//·or·`foldl`. | ||
4 | ···· | 2 | ····//·Generate·an·integer·Array·containing·an·arithmetic·progression.·A·port·of |
3 | ····//·the·native·Python·`range()`·function.·See | ||
4 | ····//·[the·Python·documentation](https://docs.python.org/library/functions.html#range). | ||
5 | ····function·range(start,·stop,·step)·{ | ||
6 | ········if·(stop·==·null)·{ | ||
7 | ············stop·=·start·||·0; | ||
8 | ············start·=·0; | ||
9 | ········} | ||
10 | ········if·(!step)·{ | ||
11 | ············step·=·stop·<·start·?·-1·:·1; | ||
12 | ········} | ||
13 | ········var·length·=·Math.max(Math.ceil((stop·-·start)·/·step),·0); | ||
14 | ········var·range·=·Array(length); | ||
15 | ········for·(var·idx·=·0;·idx·<·length;·idx++,·start·+=·step)·{ | ||
16 | ············range[idx]·=·start; | ||
17 | ········} | ||
18 | ········return·range; | ||
19 | ····} | ||
5 | ····return·r | 20 | ····return·range; |
6 | })); | 21 | })); |
Offset 1, 27 lines modified | Offset 1, 9 lines modified | ||
1 | define((function()·{ | 1 | define(['./index10'],·(function(_createReduce)·{ |
2 | ····//·**Reduce**·builds·up·a·single·result·from·a·list·of·values,·aka·`inject`, | ||
3 | ····//·or·`foldl`. | ||
4 | ····var·reduce·=·_createReduce(1); | ||
2 | ····//·Generate·an·integer·Array·containing·an·arithmetic·progression.·A·port·of | ||
3 | ····//·the·native·Python·`range()`·function.·See | ||
4 | ····//·[the·Python·documentation](https://docs.python.org/library/functions.html#range). | ||
5 | ····function·range(start,·stop,·step)·{ | ||
6 | ········if·(stop·==·null)·{ | ||
7 | ············stop·=·start·||·0; | ||
8 | ············start·=·0; | ||
9 | ········} | ||
10 | ········if·(!step)·{ | ||
11 | ············step·=·stop·<·start·?·-1·:·1; | ||
12 | ········} | ||
13 | ········var·length·=·Math.max(Math.ceil((stop·-·start)·/·step),·0); | ||
14 | ········var·range·=·Array(length); | ||
15 | ········for·(var·idx·=·0;·idx·<·length;·idx++,·start·+=·step)·{ | ||
16 | ············range[idx]·=·start; | ||
17 | ········} | ||
18 | ········return·range; | ||
19 | ····} | ||
20 | ····return·r | 5 | ····return·reduce; |
21 | })); | 6 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index57',·'./index115',·'./index | 1 | define(['./index57',·'./index115',·'./index5'],·(function(filter,·negate,·_cb)·{ |
2 | ····//·Return·all·the·elements·for·which·a·truth·test·fails. | 2 | ····//·Return·all·the·elements·for·which·a·truth·test·fails. |
3 | ····function·reject(obj,·predicate,·context)·{ | 3 | ····function·reject(obj,·predicate,·context)·{ |
4 | ········return·filter(obj,·negate(_cb(predicate)),·context); | 4 | ········return·filter(obj,·negate(_cb(predicate)),·context); |
5 | ····} | 5 | ····} |
6 | ····return·reject; | 6 | ····return·reject; |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index2 | 1 | define(['./index21',·'./index156',·'./index17',·'./index128',·'./index147'],·(function(_isArrayLike,·values,·_getLength,·random,·toArray)·{ |
2 | ····//·Sample·**n**·random·values·from·a·collection·using·the·modern·version·of·the | 2 | ····//·Sample·**n**·random·values·from·a·collection·using·the·modern·version·of·the |
3 | ····//·[Fisher-Yates·shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle). | 3 | ····//·[Fisher-Yates·shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle). |
4 | ····//·If·**n**·is·not·specified,·returns·a·single·random·element. | 4 | ····//·If·**n**·is·not·specified,·returns·a·single·random·element. |
5 | ····//·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`. | 5 | ····//·The·internal·`guard`·argument·allows·it·to·work·with·`_.map`. |
6 | ····function·sample(obj,·n,·guard)·{ | 6 | ····function·sample(obj,·n,·guard)·{ |
7 | ········if·(n·==·null·||·guard)·{ | 7 | ········if·(n·==·null·||·guard)·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index2 | 1 | define(['./index21',·'./index105'],·(function(_isArrayLike,·keys)·{ |
2 | ····//·Return·the·number·of·elements·in·a·collection. | 2 | ····//·Return·the·number·of·elements·in·a·collection. |
3 | ····function·size(obj)·{ | 3 | ····function·size(obj)·{ |
4 | ········if·(obj·==·null)·return·0; | 4 | ········if·(obj·==·null)·return·0; |
5 | ········return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length; | 5 | ········return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length; |
6 | ····} | 6 | ····} |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index21',·'./index105'],·(function(_cb,·_isArrayLike,·keys)·{ |
2 | ····//·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test. | 2 | ····//·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test. |
3 | ····function·some(obj,·predicate,·context)·{ | 3 | ····function·some(obj,·predicate,·context)·{ |
4 | ········predicate·=·_cb(predicate,·context); | 4 | ········predicate·=·_cb(predicate,·context); |
5 | ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), | 5 | ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), |
6 | ············length·=·(_keys·||·obj).length; | 6 | ············length·=·(_keys·||·obj).length; |
7 | ········for·(var·index·=·0;·index·<·length;·index++)·{ | 7 | ········for·(var·index·=·0;·index·<·length;·index++)·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index',·'./index9 | 1 | define(['./index4',·'./index94'],·(function(_baseCreate,·isObject)·{ |
2 | ····//·Internal·function·to·execute·`sourceFunc`·bound·to·`context`·with·optional | 2 | ····//·Internal·function·to·execute·`sourceFunc`·bound·to·`context`·with·optional |
3 | ····//·`args`.·Determines·whether·to·execute·a·function·as·a·constructor·or·as·a | 3 | ····//·`args`.·Determines·whether·to·execute·a·function·as·a·constructor·or·as·a |
4 | ····//·normal·function. | 4 | ····//·normal·function. |
5 | ····function·executeBound(sourceFunc,·boundFunc,·context,·callingContext,·args)·{ | 5 | ····function·executeBound(sourceFunc,·boundFunc,·context,·callingContext,·args)·{ |
6 | ········if·(!(callingContext·instanceof·boundFunc))·return·sourceFunc.apply(context,·args); | 6 | ········if·(!(callingContext·instanceof·boundFunc))·return·sourceFunc.apply(context,·args); |
7 | ········var·self·=·_baseCreate(sourceFunc.prototype); | 7 | ········var·self·=·_baseCreate(sourceFunc.prototype); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index125',·'./index107'],·(function(_cb,·pluck,·map)·{ |
2 | ····//·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee. | 2 | ····//·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee. |
3 | ····function·sortBy(obj,·iteratee,·context)·{ | 3 | ····function·sortBy(obj,·iteratee,·context)·{ |
4 | ········var·index·=·0; | 4 | ········var·index·=·0; |
5 | ········iteratee·=·_cb(iteratee,·context); | 5 | ········iteratee·=·_cb(iteratee,·context); |
6 | ········return·pluck(map(obj,·function(value,·key,·list)·{ | 6 | ········return·pluck(map(obj,·function(value,·key,·list)·{ |
7 | ············return·{ | 7 | ············return·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index17'],·(function(_cb,·_getLength)·{ |
2 | ····//·Use·a·comparator·function·to·figure·out·the·smallest·index·at·which | 2 | ····//·Use·a·comparator·function·to·figure·out·the·smallest·index·at·which |
3 | ····//·an·object·should·be·inserted·so·as·to·maintain·order.·Uses·binary·search. | 3 | ····//·an·object·should·be·inserted·so·as·to·maintain·order.·Uses·binary·search. |
4 | ····function·sortedIndex(array,·obj,·iteratee,·context)·{ | 4 | ····function·sortedIndex(array,·obj,·iteratee,·context)·{ |
5 | ········iteratee·=·_cb(iteratee,·context,·1); | 5 | ········iteratee·=·_cb(iteratee,·context,·1); |
6 | ········var·value·=·iteratee(obj); | 6 | ········var·value·=·iteratee(obj); |
7 | ········var·low·=·0, | 7 | ········var·low·=·0, |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index79',·'./index26',·'./index98',·'./index2 | 1 | define(['./index79',·'./index26',·'./index98',·'./index21',·'./index107',·'./index69',·'./index156'],·(function(isArray,·_setup,·isString,·_isArrayLike,·map,·identity,·values)·{ |
2 | ····//·Safely·create·a·real,·live·array·from·anything·iterable. | 2 | ····//·Safely·create·a·real,·live·array·from·anything·iterable. |
3 | ····var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; | 3 | ····var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; |
4 | ····function·toArray(obj)·{ | 4 | ····function·toArray(obj)·{ |
5 | ········if·(!obj)·return·[]; | 5 | ········if·(!obj)·return·[]; |
6 | ········if·(isArray(obj))·return·_setup.slice.call(obj); | 6 | ········if·(isArray(obj))·return·_setup.slice.call(obj); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index150',·'./index5 | 1 | define(['./index150',·'./index51',·'./index26',·'./index2'],·(function(underscore,·each,·_setup,·_chainResult)·{ |
2 | ····//·Add·all·mutator·`Array`·functions·to·the·wrapper. | 2 | ····//·Add·all·mutator·`Array`·functions·to·the·wrapper. |
3 | ····each(['pop',·'push',·'reverse',·'shift',·'sort',·'splice',·'unshift'],·function(name)·{ | 3 | ····each(['pop',·'push',·'reverse',·'shift',·'sort',·'splice',·'unshift'],·function(name)·{ |
4 | ········var·method·=·_setup.ArrayProto[name]; | 4 | ········var·method·=·_setup.ArrayProto[name]; |
5 | ········underscore.prototype[name]·=·function()·{ | 5 | ········underscore.prototype[name]·=·function()·{ |
6 | ············var·obj·=·this._wrapped; | 6 | ············var·obj·=·this._wrapped; |
7 | ············if·(obj·!=·null)·{ | 7 | ············if·(obj·!=·null)·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index17',·'./index2 | 1 | define(['./index17',·'./index21',·'./index79',·'./index77'],·(function(_getLength,·_isArrayLike,·isArray,·isArguments)·{ |
2 | ····//·Internal·implementation·of·a·recursive·`flatten`·function. | 2 | ····//·Internal·implementation·of·a·recursive·`flatten`·function. |
3 | ····function·flatten(input,·depth,·strict,·output)·{ | 3 | ····function·flatten(input,·depth,·strict,·output)·{ |
4 | ········output·=·output·||·[]; | 4 | ········output·=·output·||·[]; |
5 | ········if·(!depth·&&·depth·!==·0)·{ | 5 | ········if·(!depth·&&·depth·!==·0)·{ |
6 | ············depth·=·Infinity; | 6 | ············depth·=·Infinity; |
7 | ········}·else·if·(depth·<=·0)·{ | 7 | ········}·else·if·(depth·<=·0)·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index81',·'./index | 1 | define(['./index81',·'./index5',·'./index17',·'./index44'],·(function(isBoolean,·_cb,·_getLength,·contains)·{ |
2 | ····//·Produce·a·duplicate-free·version·of·the·array.·If·the·array·has·already | 2 | ····//·Produce·a·duplicate-free·version·of·the·array.·If·the·array·has·already |
3 | ····//·been·sorted,·you·have·the·option·of·using·a·faster·algorithm. | 3 | ····//·been·sorted,·you·have·the·option·of·using·a·faster·algorithm. |
4 | ····//·The·faster·algorithm·will·not·work·with·an·iteratee·if·the·iteratee | 4 | ····//·The·faster·algorithm·will·not·work·with·an·iteratee·if·the·iteratee |
5 | ····//·is·not·a·one-to-one·function,·so·providing·an·iteratee·will·disable | 5 | ····//·is·not·a·one-to-one·function,·so·providing·an·iteratee·will·disable |
6 | ····//·the·faster·algorithm. | 6 | ····//·the·faster·algorithm. |
7 | ····function·uniq(array,·isSorted,·iteratee,·context)·{ | 7 | ····function·uniq(array,·isSorted,·iteratee,·context)·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index134',·'./index5 | 1 | define(['./index134',·'./index50'],·(function(restArguments,·difference)·{ |
2 | ····//·Return·a·version·of·the·array·that·does·not·contain·the·specified·value(s). | 2 | ····//·Return·a·version·of·the·array·that·does·not·contain·the·specified·value(s). |
3 | ····var·without·=·restArguments(function(array,·otherArrays)·{ | 3 | ····var·without·=·restArguments(function(array,·otherArrays)·{ |
4 | ········return·difference(array,·otherArrays); | 4 | ········return·difference(array,·otherArrays); |
5 | ····}); | 5 | ····}); |
6 | ····return·without; | 6 | ····return·without; |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index51'],·(function(_cb,·each)·{ |
2 | ····//·An·internal·function·used·for·aggregate·"group·by"·operations. | 2 | ····//·An·internal·function·used·for·aggregate·"group·by"·operations. |
3 | ····function·group(behavior,·partition)·{ | 3 | ····function·group(behavior,·partition)·{ |
4 | ········return·function(obj,·iteratee,·context)·{ | 4 | ········return·function(obj,·iteratee,·context)·{ |
5 | ············var·result·=·partition·?·[ | 5 | ············var·result·=·partition·?·[ |
6 | ················[], | 6 | ················[], |
7 | ················[] | 7 | ················[] |
Offset 1, 15 lines modified | Offset 1, 10 lines modified | ||
1 | define(['./index | 1 | define(['./index150'],·(function(underscore)·{ |
2 | ····//·Helper·function·to·continue·chaining·intermediate·results. | ||
3 | ····function·chainResult(instance,·obj)·{ | ||
4 | ········return·instance._chain·?·underscore(obj).chain()·:·obj; | ||
2 | ····//·An·internal·function·to·generate·callbacks·that·can·be·applied·to·each | ||
3 | ····//·element·in·a·collection,·returning·the·desired·result·—·either·`_.identity`, | ||
4 | ····//·an·arbitrary·callback,·a·property·matcher,·or·a·property·accessor. | ||
5 | ····function·baseIteratee(value,·context,·argCount)·{ | ||
6 | ········if·(value·==·null)·return·identity; | ||
7 | ········if·(isFunction(value))·return·_optimizeCb(value,·context,·argCount); | ||
8 | ········if·(isObject(value)·&&·!isArray(value))·return·matcher(value); | ||
9 | ········return·property(value); | ||
10 | ····} | 5 | ····} |
11 | ····return· | 6 | ····return·chainResult; |
12 | })); | 7 | })); |
Offset 1, 11 lines modified | Offset 1, 7 lines modified | ||
1 | define(['./index | 1 | define(['./index29'],·(function(_tagTester)·{ |
2 | ····var·hasObjectTag·=·_tagTester('Object'); | ||
2 | ····//·Internal·helper·for·collection·methods·to·determine·whether·a·collection | ||
3 | ····//·should·be·iterated·as·an·array·or·as·an·object. | ||
4 | ····//·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength | ||
5 | ····//·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094 | ||
6 | ····var·isArrayLike·=·_createSizePropertyCheck(_getLength); | ||
7 | ····return· | 3 | ····return·hasObjectTag; |
8 | })); | 4 | })); |
Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
1 | define((function()·{ | 1 | define(['./index11',·'./index17'],·(function(_createSizePropertyCheck,·_getLength)·{ |
2 | ····//·Internal·`_.pick`·helper·function·to·determine·whether·`key`·is·an·enumerable | ||
3 | ····//·property·name·of·`obj`. | ||
4 | ····function·keyInObj(value,·key,·obj)·{ | ||
5 | ········return·key·in·obj; | ||
6 | ···· | 2 | ····//·Internal·helper·for·collection·methods·to·determine·whether·a·collection |
3 | ····//·should·be·iterated·as·an·array·or·as·an·object. | ||
4 | ····//·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength | ||
5 | ····//·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094 | ||
6 | ····var·isArrayLike·=·_createSizePropertyCheck(_getLength); | ||
7 | ····return· | 7 | ····return·isArrayLike; |
8 | })); | 8 | })); |
Offset 1, 7 lines modified | Offset 1, 9 lines modified | ||
1 | define(['./index | 1 | define(['./index11',·'./index16'],·(function(_createSizePropertyCheck,·_getByteLength)·{ |
2 | ···· | 2 | ····//·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against |
3 | ····//·`ArrayBuffer`·et·al. | ||
4 | ····var·isBufferLike·=·_createSizePropertyCheck(_getByteLength); | ||
3 | ····return· | 5 | ····return·isBufferLike; |
4 | })); | 6 | })); |
Offset 1, 9 lines modified | Offset 1, 11 lines modified | ||
1 | define( | 1 | define((function()·{ |
2 | ····//·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against | ||
3 | ····//·`ArrayBuffer`·et·al. | ||
4 | ···· | 2 | ····//·Internal·`_.pick`·helper·function·to·determine·whether·`key`·is·an·enumerable |
3 | ····//·property·name·of·`obj`. | ||
4 | ····function·keyInObj(value,·key,·obj)·{ | ||
5 | ········return·key·in·obj; | ||
6 | ····} | ||
5 | ····return· | 7 | ····return·keyInObj; |
6 | })); | 8 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['exports',·'./index26',·'./index2 | 1 | define(['exports',·'./index26',·'./index20'],·(function(exports,·_setup,·_hasObjectTag)·{ |
2 | ····//·In·IE·10·-·Edge·13,·`DataView`·has·string·tag·`'[object·Object]'`. | 2 | ····//·In·IE·10·-·Edge·13,·`DataView`·has·string·tag·`'[object·Object]'`. |
3 | ····//·In·IE·11,·the·most·common·among·them,·this·problem·also·applies·to | 3 | ····//·In·IE·11,·the·most·common·among·them,·this·problem·also·applies·to |
4 | ····//·`Map`,·`WeakMap`·and·`Set`. | 4 | ····//·`Map`,·`WeakMap`·and·`Set`. |
5 | ····var·hasStringTagBug·=·( | 5 | ····var·hasStringTagBug·=·( |
6 | ············_setup.supportsDataView·&&·_hasObjectTag(new·DataView(new·ArrayBuffer(8))) | 6 | ············_setup.supportsDataView·&&·_hasObjectTag(new·DataView(new·ArrayBuffer(8))) |
7 | ········), | 7 | ········), |
Offset 1, 12 lines modified | Offset 1, 44 lines modified | ||
1 | define(['./index | 1 | define(['./index26',·'./index89',·'./index19'],·(function(_setup,·isFunction,·_has)·{ |
2 | ····//·The·function·we·call·internally·to·generate·a·callback.·It·invokes | ||
3 | ····//·`_.iteratee`·if·overridden,·otherwise·`baseIteratee`. | ||
4 | ····function·cb(value,·context,·argCount)·{ | ||
5 | ········if·(underscore.iteratee·!==·iteratee)·return·underscore.iteratee(value,·context); | ||
6 | ···· | 2 | ····//·Internal·helper·to·create·a·simple·lookup·structure. |
3 | ····//·`collectNonEnumProps`·used·to·depend·on·`_.contains`,·but·this·led·to | ||
4 | ····//·circular·imports.·`emulatedSet`·is·a·one-off·solution·that·only·works·for | ||
5 | ····//·arrays·of·strings. | ||
6 | ····function·emulatedSet(keys)·{ | ||
7 | ········var·hash·=·{}; | ||
8 | ········for·(var·l·=·keys.length,·i·=·0;·i·<·l;·++i)·hash[keys[i]]·=·true; | ||
9 | ········return·{ | ||
10 | ············contains:·function(key)·{ | ||
11 | ················return·hash[key]·===·true; | ||
12 | ············}, | ||
13 | ············push:·function(key)·{ | ||
14 | ················hash[key]·=·true; | ||
15 | ················return·keys.push(key); | ||
16 | ············} | ||
17 | ········}; | ||
7 | ····} | 18 | ····} |
8 | ····ret | 19 | ····//·Internal·helper.·Checks·`keys`·for·the·presence·of·keys·in·IE·<·9·that·won't |
20 | ····//·be·iterated·by·`for·key·in·...`·and·thus·missed.·Extends·`keys`·in·place·if | ||
21 | ····//·needed. | ||
22 | ····function·collectNonEnumProps(obj,·keys)·{ | ||
23 | ········keys·=·emulatedSet(keys); | ||
24 | ········var·nonEnumIdx·=·_setup.nonEnumerableProps.length; | ||
25 | ········var·constructor·=·obj.constructor; | ||
26 | ········var·proto·=·(isFunction(constructor)·&&·constructor.prototype)·||·_setup.ObjProto; | ||
27 | ········//·Constructor·is·a·special·case. | ||
28 | ········var·prop·=·'constructor'; | ||
29 | ········if·(_has(obj,·prop)·&&·!keys.contains(prop))·keys.push(prop); | ||
30 | ········while·(nonEnumIdx--)·{ | ||
31 | ············prop·=·_setup.nonEnumerableProps[nonEnumIdx]; | ||
32 | ············if·(prop·in·obj·&&·obj[prop]·!==·proto[prop]·&&·!keys.contains(prop))·{ | ||
33 | ················keys.push(prop); | ||
34 | ············} | ||
35 | ········} | ||
36 | ····} | ||
37 | ····return·collectNonEnumProps; | ||
9 | })); | 38 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index9 | 1 | define(['./index94',·'./index26',·'./index3'],·(function(isObject,·_setup,·_collectNonEnumProps)·{ |
2 | ····//·Retrieve·all·the·enumerable·property·names·of·an·object. | 2 | ····//·Retrieve·all·the·enumerable·property·names·of·an·object. |
3 | ····function·allKeys(obj)·{ | 3 | ····function·allKeys(obj)·{ |
4 | ········if·(!isObject(obj))·return·[]; | 4 | ········if·(!isObject(obj))·return·[]; |
5 | ········var·keys·=·[]; | 5 | ········var·keys·=·[]; |
6 | ········for·(var·key·in·obj)·keys.push(key); | 6 | ········for·(var·key·in·obj)·keys.push(key); |
7 | ········//·Ahem,·IE·<·9. | 7 | ········//·Ahem,·IE·<·9. |
Offset 1, 19 lines modified | Offset 1, 12 lines modified | ||
1 | define(['./index1 | 1 | define(['./index150'],·(function(underscore)·{ |
2 | ····//·Start·chaining·a·wrapped·Underscore·object. | ||
3 | ····function·chain(obj)·{ | ||
4 | ········var·instance·=·underscore(obj); | ||
5 | ········instance._chain·=·true; | ||
6 | ········return·instance; | ||
2 | ····//·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments | ||
3 | ····//·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks | ||
4 | ····//·defined·on·an·object·belong·to·it. | ||
5 | ····var·bindAll·=·restArguments(function(obj,·keys)·{ | ||
6 | ········keys·=·_flatten(keys,·false,·false); | ||
7 | ········var·index·=·keys.length; | ||
8 | ········if·(index·<·1)·throw·new·Error('bindAll·must·be·passed·function·names'); | ||
9 | ········while·(index--)·{ | ||
10 | ············var·key·=·keys[index]; | ||
11 | ············obj[key]·=·bind(obj[key],·obj); | ||
12 | ········} | ||
13 | ········return·obj; | ||
14 | ····} | 7 | ····} |
15 | ····return· | 8 | ····return·chain; |
16 | })); | 9 | })); |
Offset 1, 12 lines modified | Offset 1, 19 lines modified | ||
1 | define(['./index15 | 1 | define(['./index134',·'./index15',·'./index36'],·(function(restArguments,·_flatten,·bind)·{ |
2 | ····//·Start·chaining·a·wrapped·Underscore·object. | ||
3 | ····function·chain(obj)·{ | ||
4 | ········var·instance·=·underscore(obj); | ||
5 | ········instance._chain·=·true; | ||
6 | ········ | 2 | ····//·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments |
3 | ····//·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks | ||
4 | ····//·defined·on·an·object·belong·to·it. | ||
5 | ····var·bindAll·=·restArguments(function(obj,·keys)·{ | ||
6 | ········keys·=·_flatten(keys,·false,·false); | ||
7 | ········var·index·=·keys.length; | ||
8 | ········if·(index·<·1)·throw·new·Error('bindAll·must·be·passed·function·names'); | ||
9 | ········while·(index--)·{ | ||
10 | ············var·key·=·keys[index]; | ||
11 | ············obj[key]·=·bind(obj[key],·obj); | ||
12 | ········} | ||
13 | ········return·obj; | ||
7 | ····} | 14 | ····}); |
8 | ····return· | 15 | ····return·bindAll; |
9 | })); | 16 | })); |
Offset 1, 10 lines modified | Offset 1, 21 lines modified | ||
1 | define(['./index | 1 | define(['./index94',·'./index26'],·(function(isObject,·_setup)·{ |
2 | ····//·Helper·function·to·continue·chaining·intermediate·results. | ||
3 | ····function·chainResult(instance,·obj)·{ | ||
4 | ···· | 2 | ····//·Create·a·naked·function·reference·for·surrogate-prototype-swapping. |
3 | ····function·ctor()·{ | ||
4 | ········return·function()·{}; | ||
5 | ····} | 5 | ····} |
6 | ····//·An·internal·function·for·creating·a·new·object·that·inherits·from·another. | ||
7 | ····function·baseCreate(prototype)·{ | ||
8 | ········if·(!isObject(prototype))·return·{}; | ||
9 | ········if·(_setup.nativeCreate)·return·_setup.nativeCreate(prototype); | ||
10 | ········var·Ctor·=·ctor(); | ||
11 | ········Ctor.prototype·=·prototype; | ||
12 | ········var·result·=·new·Ctor; | ||
13 | ········Ctor.prototype·=·null; | ||
6 | ····return· | 14 | ········return·result; |
15 | ····} | ||
16 | ····return·baseCreate; | ||
7 | })); | 17 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index9 | 1 | define(['./index94',·'./index79',·'./index55'],·(function(isObject,·isArray,·extend)·{ |
2 | ····//·Create·a·(shallow-cloned)·duplicate·of·an·object. | 2 | ····//·Create·a·(shallow-cloned)·duplicate·of·an·object. |
3 | ····function·clone(obj)·{ | 3 | ····function·clone(obj)·{ |
4 | ········if·(!isObject(obj))·return·obj; | 4 | ········if·(!isObject(obj))·return·obj; |
5 | ········return·isArray(obj)·?·obj.slice()·:·extend({},·obj); | 5 | ········return·isArray(obj)·?·obj.slice()·:·extend({},·obj); |
6 | ····} | 6 | ····} |
Offset 1, 10 lines modified | Offset 1, 18 lines modified | ||
1 | define( | 1 | define((function()·{ |
2 | ····//· | 2 | ····//·Returns·a·function·that·is·the·composition·of·a·list·of·functions,·each |
3 | ····//·consuming·the·return·value·of·the·function·that·follows. | ||
3 | ····function·comp | 4 | ····function·compose()·{ |
4 | ········ | 5 | ········var·args·=·arguments; |
6 | ········var·start·=·args.length·-·1; | ||
7 | ········return·function()·{ | ||
8 | ············var·i·=·start; | ||
9 | ············var·result·=·args[start].apply(this,·arguments); | ||
10 | ············while·(i--)·result·=·args[i].call(this,·result); | ||
11 | ············return·result; | ||
12 | ········}; | ||
5 | ····} | 13 | ····} |
6 | ····return·comp | 14 | ····return·compose; |
7 | })); | 15 | })); |
Offset 1, 18 lines modified | Offset 1, 10 lines modified | ||
1 | define((function()·{ | 1 | define(['./index57'],·(function(filter)·{ |
2 | ····//·Trim·out·all·falsy·values·from·an·array. | ||
2 | ····//·Returns·a·function·that·is·the·composition·of·a·list·of·functions,·each | ||
3 | ····//·consuming·the·return·value·of·the·function·that·follows. | ||
4 | ····function·comp | 3 | ····function·compact(array)·{ |
4 | ········return·filter(array,·Boolean); | ||
5 | ········var·args·=·arguments; | ||
6 | ········var·start·=·args.length·-·1; | ||
7 | ········return·function()·{ | ||
8 | ············var·i·=·start; | ||
9 | ············var·result·=·args[start].apply(this,·arguments); | ||
10 | ············while·(i--)·result·=·args[i].call(this,·result); | ||
11 | ············return·result; | ||
12 | ········}; | ||
13 | ····} | 5 | ····} |
14 | ····return·comp | 6 | ····return·compact; |
15 | })); | 7 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index2 | 1 | define(['./index21',·'./index156',·'./index74'],·(function(_isArrayLike,·values,·indexOf)·{ |
2 | ····//·Determine·if·the·array·or·object·contains·a·given·item·(using·`===`). | 2 | ····//·Determine·if·the·array·or·object·contains·a·given·item·(using·`===`). |
3 | ····function·contains(obj,·item,·fromIndex,·guard)·{ | 3 | ····function·contains(obj,·item,·fromIndex,·guard)·{ |
4 | ········if·(!_isArrayLike(obj))·obj·=·values(obj); | 4 | ········if·(!_isArrayLike(obj))·obj·=·values(obj); |
5 | ········if·(typeof·fromIndex·!=·'number'·||·guard)·fromIndex·=·0; | 5 | ········if·(typeof·fromIndex·!=·'number'·||·guard)·fromIndex·=·0; |
6 | ········return·indexOf(obj,·item,·fromIndex)·>=·0; | 6 | ········return·indexOf(obj,·item,·fromIndex)·>=·0; |
7 | ····} | 7 | ····} |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index',·'./index56'],·(function(_baseCreate,·extendOwn)·{ | 1 | define(['./index4',·'./index56'],·(function(_baseCreate,·extendOwn)·{ |
2 | ····//·Creates·an·object·that·inherits·from·the·given·prototype·object. | 2 | ····//·Creates·an·object·that·inherits·from·the·given·prototype·object. |
3 | ····//·If·additional·properties·are·provided·then·they·will·be·added·to·the | 3 | ····//·If·additional·properties·are·provided·then·they·will·be·added·to·the |
4 | ····//·created·object. | 4 | ····//·created·object. |
5 | ····function·create(prototype,·props)·{ | 5 | ····function·create(prototype,·props)·{ |
6 | ········var·result·=·_baseCreate(prototype); | 6 | ········var·result·=·_baseCreate(prototype); |
7 | ········if·(props)·extendOwn(result,·props); | 7 | ········if·(props)·extendOwn(result,·props); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index122',·'./index5 | 1 | define(['./index122',·'./index52',·'./index150'],·(function(partial,·delay,·underscore)·{ |
2 | ····//·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has | 2 | ····//·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has |
3 | ····//·cleared. | 3 | ····//·cleared. |
4 | ····var·defer·=·partial(delay,·underscore,·1); | 4 | ····var·defer·=·partial(delay,·underscore,·1); |
5 | ····return·defer; | 5 | ····return·defer; |
Offset 1, 44 lines modified | Offset 1, 12 lines modified | ||
1 | define(['./index | 1 | define(['./index150',·'./index',·'./index103'],·(function(underscore,·_baseIteratee,·iteratee)·{ |
2 | ····//·The·function·we·call·internally·to·generate·a·callback.·It·invokes | ||
3 | ····//·`_.iteratee`·if·overridden,·otherwise·`baseIteratee`. | ||
4 | ····function·cb(value,·context,·argCount)·{ | ||
5 | ········if·(underscore.iteratee·!==·iteratee)·return·underscore.iteratee(value,·context); | ||
6 | ········return·_baseIteratee(value,·context,·argCount); | ||
2 | ····//·Internal·helper·to·create·a·simple·lookup·structure. | ||
3 | ····//·`collectNonEnumProps`·used·to·depend·on·`_.contains`,·but·this·led·to | ||
4 | ····//·circular·imports.·`emulatedSet`·is·a·one-off·solution·that·only·works·for | ||
5 | ····//·arrays·of·strings. | ||
6 | ····function·emulatedSet(keys)·{ | ||
7 | ········var·hash·=·{}; | ||
8 | ········for·(var·l·=·keys.length,·i·=·0;·i·<·l;·++i)·hash[keys[i]]·=·true; | ||
9 | ········return·{ | ||
10 | ············contains:·function(key)·{ | ||
11 | ················return·hash[key]·===·true; | ||
12 | ············}, | ||
13 | ············push:·function(key)·{ | ||
14 | ················hash[key]·=·true; | ||
15 | ················return·keys.push(key); | ||
16 | ············} | ||
17 | ········}; | ||
18 | ····} | 7 | ····} |
8 | ····return·cb; | ||
19 | ····//·Internal·helper.·Checks·`keys`·for·the·presence·of·keys·in·IE·<·9·that·won't | ||
20 | ····//·be·iterated·by·`for·key·in·...`·and·thus·missed.·Extends·`keys`·in·place·if | ||
21 | ····//·needed. | ||
22 | ····function·collectNonEnumProps(obj,·keys)·{ | ||
23 | ········keys·=·emulatedSet(keys); | ||
24 | ········var·nonEnumIdx·=·_setup.nonEnumerableProps.length; | ||
25 | ········var·constructor·=·obj.constructor; | ||
26 | ········var·proto·=·(isFunction(constructor)·&&·constructor.prototype)·||·_setup.ObjProto; | ||
27 | ········//·Constructor·is·a·special·case. | ||
28 | ········var·prop·=·'constructor'; | ||
29 | ········if·(_has(obj,·prop)·&&·!keys.contains(prop))·keys.push(prop); | ||
30 | ········while·(nonEnumIdx--)·{ | ||
31 | ············prop·=·_setup.nonEnumerableProps[nonEnumIdx]; | ||
32 | ············if·(prop·in·obj·&&·obj[prop]·!==·proto[prop]·&&·!keys.contains(prop))·{ | ||
33 | ················keys.push(prop); | ||
34 | ············} | ||
35 | ········} | ||
36 | ····} | ||
37 | ····return·collectNonEnumProps; | ||
38 | })); | 9 | })); |
Offset 1, 13 lines modified | Offset 1, 14 lines modified | ||
1 | define(['./index134'],·(function(restArguments)·{ | 1 | define(['./index134',·'./index15',·'./index57',·'./index44'],·(function(restArguments,·_flatten,·filter,·contains)·{ |
2 | ····//·Delays·a·function·for·the·given·number·of·milliseconds,·and·then·calls | ||
3 | ····//·it·with·the·arguments·supplied. | ||
4 | ····var·delay·=·restArguments(function(func,·wait,·args)·{ | ||
5 | ········return·setTimeout(function()·{ | ||
6 | ······· | 2 | ····//·Take·the·difference·between·one·array·and·a·number·of·other·arrays. |
3 | ····//·Only·the·elements·present·in·just·the·first·array·will·remain. | ||
4 | ····var·difference·=·restArguments(function(array,·rest)·{ | ||
5 | ········rest·=·_flatten(rest,·true,·true); | ||
6 | ········return·filter(array,·function(value)·{ | ||
7 | ············return·!contains(rest,·value); | ||
7 | ········} | 8 | ········}); |
8 | ····}); | 9 | ····}); |
9 | ····return·de | 10 | ····return·difference; |
10 | })); | 11 | })); |
Offset 1, 14 lines modified | Offset 1, 25 lines modified | ||
1 | define(['./index | 1 | define(['./index25',·'./index21',·'./index105'],·(function(_optimizeCb,·_isArrayLike,·keys)·{ |
2 | ····//·Take·the·difference·between·one·array·and·a·number·of·other·arrays. | ||
3 | ····//·Only·the·elements·present·in·just·the·first·array·will·remain. | ||
4 | ····var·difference·=·restArguments(function(array,·rest)·{ | ||
5 | ········rest·=·_flatten(rest,·true,·true); | ||
6 | ········return·filter(array,·function(value)·{ | ||
7 | ···· | 2 | ····//·The·cornerstone·for·collection·functions,·an·`each` |
3 | ····//·implementation,·aka·`forEach`. | ||
4 | ····//·Handles·raw·objects·in·addition·to·array-likes.·Treats·all | ||
5 | ····//·sparse·array-likes·as·if·they·were·dense. | ||
6 | ····function·each(obj,·iteratee,·context)·{ | ||
7 | ········iteratee·=·_optimizeCb(iteratee,·context); | ||
8 | ········var·i,·length; | ||
9 | ········if·(_isArrayLike(obj))·{ | ||
10 | ············for·(i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ | ||
11 | ················iteratee(obj[i],·i,·obj); | ||
12 | ············} | ||
13 | ········}·else·{ | ||
14 | ············var·_keys·=·keys(obj); | ||
15 | ············for·(i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ | ||
16 | ················iteratee(obj[_keys[i]],·_keys[i],·obj); | ||
17 | ············} | ||
8 | ········} | 18 | ········} |
19 | ········return·obj; | ||
9 | ····} | 20 | ····} |
10 | ····return· | 21 | ····return·each; |
11 | })); | 22 | })); |
Offset 1, 25 lines modified | Offset 1, 13 lines modified | ||
1 | define(['./index | 1 | define(['./index134'],·(function(restArguments)·{ |
2 | ····//·Delays·a·function·for·the·given·number·of·milliseconds,·and·then·calls | ||
3 | ····//·it·with·the·arguments·supplied. | ||
4 | ····var·delay·=·restArguments(function(func,·wait,·args)·{ | ||
5 | ········return·setTimeout(function()·{ | ||
6 | ············return·func.apply(null,·args); | ||
7 | ········},·wait); | ||
2 | ····//·The·cornerstone·for·collection·functions,·an·`each` | ||
3 | ····//·implementation,·aka·`forEach`. | ||
4 | ····//·Handles·raw·objects·in·addition·to·array-likes.·Treats·all | ||
5 | ····//·sparse·array-likes·as·if·they·were·dense. | ||
6 | ····function·each(obj,·iteratee,·context)·{ | ||
7 | ········iteratee·=·_optimizeCb(iteratee,·context); | ||
8 | ········var·i,·length; | ||
9 | ········if·(_isArrayLike(obj))·{ | ||
10 | ············for·(i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ | ||
11 | ················iteratee(obj[i],·i,·obj); | ||
12 | ············} | ||
13 | ········}·else·{ | ||
14 | ············var·_keys·=·keys(obj); | ||
15 | ············for·(i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ | ||
16 | ················iteratee(obj[_keys[i]],·_keys[i],·obj); | ||
17 | ············} | ||
18 | ········} | ||
19 | ········return·obj; | ||
20 | ····} | 8 | ····}); |
21 | ····return·e | 9 | ····return·delay; |
22 | })); | 10 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index21',·'./index105'],·(function(_cb,·_isArrayLike,·keys)·{ |
2 | ····//·Determine·whether·all·of·the·elements·pass·a·truth·test. | 2 | ····//·Determine·whether·all·of·the·elements·pass·a·truth·test. |
3 | ····function·every(obj,·predicate,·context)·{ | 3 | ····function·every(obj,·predicate,·context)·{ |
4 | ········predicate·=·_cb(predicate,·context); | 4 | ········predicate·=·_cb(predicate,·context); |
5 | ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), | 5 | ········var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), |
6 | ············length·=·(_keys·||·obj).length; | 6 | ············length·=·(_keys·||·obj).length; |
7 | ········for·(var·index·=·0;·index·<·length;·index++)·{ | 7 | ········for·(var·index·=·0;·index·<·length;·index++)·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index51'],·(function(_cb,·each)·{ |
2 | ····//·Return·all·the·elements·that·pass·a·truth·test. | 2 | ····//·Return·all·the·elements·that·pass·a·truth·test. |
3 | ····function·filter(obj,·predicate,·context)·{ | 3 | ····function·filter(obj,·predicate,·context)·{ |
4 | ········var·results·=·[]; | 4 | ········var·results·=·[]; |
5 | ········predicate·=·_cb(predicate,·context); | 5 | ········predicate·=·_cb(predicate,·context); |
6 | ········each(obj,·function(value,·index,·list)·{ | 6 | ········each(obj,·function(value,·index,·list)·{ |
7 | ············if·(predicate(value,·index,·list))·results.push(value); | 7 | ············if·(predicate(value,·index,·list))·results.push(value); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index2 | 1 | define(['./index21',·'./index59',·'./index60'],·(function(_isArrayLike,·findIndex,·findKey)·{ |
2 | ····//·Return·the·first·value·which·passes·a·truth·test. | 2 | ····//·Return·the·first·value·which·passes·a·truth·test. |
3 | ····function·find(obj,·predicate,·context)·{ | 3 | ····function·find(obj,·predicate,·context)·{ |
4 | ········var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey; | 4 | ········var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey; |
5 | ········var·key·=·keyFinder(obj,·predicate,·context); | 5 | ········var·key·=·keyFinder(obj,·predicate,·context); |
6 | ········if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key]; | 6 | ········if·(key·!==·void·0·&&·key·!==·-1)·return·obj[key]; |
7 | ····} | 7 | ····} |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index105'],·(function(_cb,·keys)·{ |
2 | ····//·Returns·the·first·key·on·an·object·that·passes·a·truth·test. | 2 | ····//·Returns·the·first·key·on·an·object·that·passes·a·truth·test. |
3 | ····function·findKey(obj,·predicate,·context)·{ | 3 | ····function·findKey(obj,·predicate,·context)·{ |
4 | ········predicate·=·_cb(predicate,·context); | 4 | ········predicate·=·_cb(predicate,·context); |
5 | ········var·_keys·=·keys(obj), | 5 | ········var·_keys·=·keys(obj), |
6 | ············key; | 6 | ············key; |
7 | ········for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ | 7 | ········for·(var·i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index7 | 1 | define(['./index73'],·(function(initial)·{ |
2 | ····//·Get·the·first·element·of·an·array.·Passing·**n**·will·return·the·first·N | 2 | ····//·Get·the·first·element·of·an·array.·Passing·**n**·will·return·the·first·N |
3 | ····//·values·in·the·array.·The·**guard**·check·allows·it·to·work·with·`_.map`. | 3 | ····//·values·in·the·array.·The·**guard**·check·allows·it·to·work·with·`_.map`. |
4 | ····function·first(array,·n,·guard)·{ | 4 | ····function·first(array,·n,·guard)·{ |
5 | ········if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[]; | 5 | ········if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[]; |
6 | ········if·(n·==·null·||·guard)·return·array[0]; | 6 | ········if·(n·==·null·||·guard)·return·array[0]; |
7 | ········return·initial(array,·array.length·-·n); | 7 | ········return·initial(array,·array.length·-·n); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index71',·'./index11 | 1 | define(['./index71',·'./index114'],·(function(index,·mixin)·{ |
2 | ····//·Default·Export | 2 | ····//·Default·Export |
3 | ····//·============== | 3 | ····//·============== |
4 | ····//·In·this·module,·we·mix·our·bundled·exports·into·the·`_`·object·and·export | 4 | ····//·In·this·module,·we·mix·our·bundled·exports·into·the·`_`·object·and·export |
5 | ····//·the·result.·This·is·analogous·to·setting·`module.exports·=·_`·in·CommonJS. | 5 | ····//·the·result.·This·is·analogous·to·setting·`module.exports·=·_`·in·CommonJS. |
6 | ····//·Hence,·this·module·is·also·the·entry·point·of·our·UMD·bundle·and·the·package | 6 | ····//·Hence,·this·module·is·also·the·entry·point·of·our·UMD·bundle·and·the·package |
7 | ····//·entry·point·for·CommonJS·and·AMD·users.·In·other·words,·this·is·(the·source | 7 | ····//·entry·point·for·CommonJS·and·AMD·users.·In·other·words,·this·is·(the·source |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['exports',·'./index26',·'./index134',·'./index9 | 1 | define(['exports',·'./index26',·'./index134',·'./index94',·'./index93',·'./index101',·'./index81',·'./index84',·'./index98',·'./index95',·'./index83',·'./index96',·'./index87',·'./index99',·'./index80',·'./index82',·'./index79',·'./index89',·'./index77',·'./index88',·'./index92',·'./index100',·'./index85',·'./[·...·truncated·by·diffoscope;·len:·1389,·SHA:·b9f8bcfee397d53ddc2b6271388588a0b038abca955592a5ff422ba6e13321ac·...·]',·'./index149',·'./index150'],·(function(exports,·_setup,·restArguments,·isObject,·isNull,·isUndefined,·isBoolean,·isElement,·isString,·isNumber,·isDate,·isRegExp,·isError,·isSymbol,·isArrayBuffer,·isDataView,·isArray,·isFunction,·isArguments,·isFinite,·isNaN,·isTypedArray,·isEmpty,·isMatch,·isEqual,·isMap,·isWeakMap,·isSet,·isWeakSet,·keys,·allKeys,·values,·pairs,·invert,·functions,·extend,·extendOwn,·defaults,·create,·clone,·tap,·get,·has,·mapObject,·identity,·constant,·noop,·toPath,·property,·propertyOf,·matcher,·times,·random,·now,·escape,·unescape,·templateSettings,·template,·result,·uniqueId,·chain,·iteratee,·partial,·bind,·bindAll,·memoize,·delay,·defer,·throttle,·debounce,·wrap,·negate,·compose,·after,·before,·once,·findKey,·findIndex,·findLastIndex,·sortedIndex,·indexOf,·lastIndexOf,·find,·findWhere,·each,·map,·reduce,·reduceRight,·filter,·reject,·every,·some,·contains,·invoke,·pluck,·where,·max,·min,·shuffle,·sample,·sortBy,·groupBy,·indexBy,·countBy,·partition,·toArray,·size,·pick,·omit,·first,·initial,·last,·rest,·compact,·flatten,·without,·uniq,·union,·intersection,·difference,·unzip,·zip,·object,·range,·chunk,·mixin,·underscoreArrayMethods,·underscore)·{ |
2 | ····//·Named·Exports | 2 | ····//·Named·Exports |
3 | ····//·============= | 3 | ····//·============= |
4 | ····exports.VERSION·=·_setup.VERSION; | 4 | ····exports.VERSION·=·_setup.VERSION; |
5 | ····exports.restArguments·=·restArguments; | 5 | ····exports.restArguments·=·restArguments; |
6 | ····exports.isObject·=·isObject; | 6 | ····exports.isObject·=·isObject; |
Offset 1, 11 lines modified | Offset 1, 12 lines modified | ||
1 | define(['./index | 1 | define(['./index26'],·(function(_setup)·{ |
2 | ····//·Return·the·position·of·the·first·occurrence·of·an·item·in·an·array, | ||
3 | ····//·or·-1·if·the·item·is·not·included·in·the·array. | ||
4 | ····//·If·the·array·is·large·and·already·in·sort·order,·pass·`true` | ||
5 | ····//·for·**isSorted**·to·use·binary·search. | ||
6 | ···· | 2 | ····//·Returns·everything·but·the·last·entry·of·the·array.·Especially·useful·on |
3 | ····//·the·arguments·object.·Passing·**n**·will·return·all·the·values·in | ||
4 | ····//·the·array,·excluding·the·last·N. | ||
5 | ····function·initial(array,·n,·guard)·{ | ||
6 | ········return·_setup.slice.call(array,·0,·Math.max(0,·array.length·-·(n·==·null·||·guard·?·1·:·n))); | ||
7 | ····} | ||
7 | ····return·in | 8 | ····return·initial; |
8 | })); | 9 | })); |
Offset 1, 12 lines modified | Offset 1, 11 lines modified | ||
1 | define(['./index | 1 | define(['./index141',·'./index59',·'./index8'],·(function(sortedIndex,·findIndex,·_createIndexFinder)·{ |
2 | ····//·Return·the·position·of·the·first·occurrence·of·an·item·in·an·array, | ||
3 | ····//·or·-1·if·the·item·is·not·included·in·the·array. | ||
4 | ····//·If·the·array·is·large·and·already·in·sort·order,·pass·`true` | ||
5 | ····//·for·**isSorted**·to·use·binary·search. | ||
6 | ····var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex); | ||
2 | ····//·Returns·everything·but·the·last·entry·of·the·array.·Especially·useful·on | ||
3 | ····//·the·arguments·object.·Passing·**n**·will·return·all·the·values·in | ||
4 | ····//·the·array,·excluding·the·last·N. | ||
5 | ····function·initial(array,·n,·guard)·{ | ||
6 | ········return·_setup.slice.call(array,·0,·Math.max(0,·array.length·-·(n·==·null·||·guard·?·1·:·n))); | ||
7 | ····} | ||
8 | ····return·in | 7 | ····return·indexOf; |
9 | })); | 8 | })); |
Offset 1, 28 lines modified | Offset 1, 19 lines modified | ||
1 | define(['./index | 1 | define(['./index29',·'./index19'],·(function(_tagTester,·_has)·{ |
2 | ····//·Invoke·a·method·(with·arguments)·on·every·item·in·a·collection. | ||
3 | ····var·invoke·=·restArguments(function(obj,·path,·args)·{ | ||
4 | ········var·contextPath,·func; | ||
5 | ········if·(isFunction(path))·{ | ||
6 | ············func·=·path; | ||
7 | ········}·else·{ | ||
8 | ············path·=·_toPath(path); | ||
9 | ············contextPath·=·path.slice(0,·-1); | ||
10 | ····· | 2 | ····var·isArguments·=·_tagTester('Arguments'); |
3 | ····//·Define·a·fallback·version·of·the·method·in·browsers·(ahem,·IE·<·9),·where | ||
4 | ····//·there·isn't·any·inspectable·"Arguments"·type. | ||
5 | ····(function()·{ | ||
6 | ········if·(!isArguments(arguments))·{ | ||
7 | ············isArguments·=·function(obj)·{ | ||
8 | ················return·_has(obj,·'callee'); | ||
9 | ············}; | ||
11 | ········} | 10 | ········} |
12 | ········return·map(obj,·function(context)·{ | ||
13 | ············var·method·=·func; | ||
14 | ············if·(!method)·{ | ||
15 | ················if·(contextPath·&&·contextPath.length)·{ | ||
16 | ····················context·=·_deepGet(context,·contextPath); | ||
17 | ················} | ||
18 | ················if·(context·==·null)·return·void·0; | ||
19 | ················method·=·context[path]; | ||
20 | ············} | ||
21 | ············return·method·==·null·?·method·:·method.apply(context,·args); | ||
22 | ········}); | ||
23 | ····}); | 11 | ····}()); |
12 | ····var·isArguments$1·=·isArguments; | ||
24 | ····return·in | 13 | ····return·isArguments$1; |
25 | })); | 14 | })); |
Offset 1, 19 lines modified | Offset 1, 28 lines modified | ||
1 | define(['./index | 1 | define(['./index134',·'./index89',·'./index107',·'./index12',·'./index31'],·(function(restArguments,·isFunction,·map,·_deepGet,·_toPath)·{ |
2 | ····var·isArguments·=·_tagTester('Arguments'); | ||
3 | ····//·Define·a·fallback·version·of·the·method·in·browsers·(ahem,·IE·<·9),·where | ||
4 | ····//·there·isn't·any·inspectable·"Arguments"·type. | ||
5 | ····(function()·{ | ||
6 | ········if·(!isArguments(arguments))·{ | ||
7 | ············isArguments·=·function(obj)·{ | ||
8 | ················return·_has(obj,·'callee'); | ||
9 | ············ | 2 | ····//·Invoke·a·method·(with·arguments)·on·every·item·in·a·collection. |
3 | ····var·invoke·=·restArguments(function(obj,·path,·args)·{ | ||
4 | ········var·contextPath,·func; | ||
5 | ········if·(isFunction(path))·{ | ||
6 | ············func·=·path; | ||
7 | ········}·else·{ | ||
8 | ············path·=·_toPath(path); | ||
9 | ············contextPath·=·path.slice(0,·-1); | ||
10 | ············path·=·path[path.length·-·1]; | ||
10 | ········} | 11 | ········} |
12 | ········return·map(obj,·function(context)·{ | ||
13 | ············var·method·=·func; | ||
14 | ············if·(!method)·{ | ||
15 | ················if·(contextPath·&&·contextPath.length)·{ | ||
16 | ····················context·=·_deepGet(context,·contextPath); | ||
17 | ················} | ||
18 | ················if·(context·==·null)·return·void·0; | ||
19 | ················method·=·context[path]; | ||
20 | ············} | ||
21 | ············return·method·==·null·?·method·:·method.apply(context,·args); | ||
22 | ········}); | ||
11 | ····} | 23 | ····}); |
12 | ····var·isArguments$1·=·isArguments; | ||
13 | ····return·i | 24 | ····return·invoke; |
14 | })); | 25 | })); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index17',·'./index79',·'./index98',·'./index7 | 1 | define(['./index17',·'./index79',·'./index98',·'./index77',·'./index105'],·(function(_getLength,·isArray,·isString,·isArguments,·keys)·{ |
2 | ····//·Is·a·given·array,·string,·or·object·empty? | 2 | ····//·Is·a·given·array,·string,·or·object·empty? |
3 | ····//·An·"empty"·object·has·no·enumerable·own-properties. | 3 | ····//·An·"empty"·object·has·no·enumerable·own-properties. |
4 | ····function·isEmpty(obj)·{ | 4 | ····function·isEmpty(obj)·{ |
5 | ········if·(obj·==·null)·return·true; | 5 | ········if·(obj·==·null)·return·true; |
6 | ········//·Skip·the·more·expensive·`toString`-based·type·checks·if·`obj`·has·no | 6 | ········//·Skip·the·more·expensive·`toString`-based·type·checks·if·`obj`·has·no |
7 | ········//·`.length`. | 7 | ········//·`.length`. |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index | 1 | define(['./index5',·'./index17'],·(function(_cb,·_getLength)·{ |
2 | ····//·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`. | 2 | ····//·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`. |
3 | ····function·createPredicateIndexFinder(dir)·{ | 3 | ····function·createPredicateIndexFinder(dir)·{ |
4 | ········return·function(array,·predicate,·context)·{ | 4 | ········return·function(array,·predicate,·context)·{ |
5 | ············predicate·=·_cb(predicate,·context); | 5 | ············predicate·=·_cb(predicate,·context); |
6 | ············var·length·=·_getLength(array); | 6 | ············var·length·=·_getLength(array); |
7 | ············var·index·=·dir·>·0·?·0·:·length·-·1; | 7 | ············var·index·=·dir·>·0·?·0·:·length·-·1; |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | define(['./index26',·'./index9 | 1 | define(['./index26',·'./index95'],·(function(_setup,·isNumber)·{ |
2 | ····//·Is·the·given·value·`NaN`? | 2 | ····//·Is·the·given·value·`NaN`? |
3 | ····function·isNaN(obj)·{ | 3 | ····function·isNaN(obj)·{ |
4 | ········return·isNumber(obj)·&&·_setup._isNaN(obj); | 4 | ········return·isNumber(obj)·&&·_setup._isNaN(obj); |
5 | ····} | 5 | ····} |
6 | ····return·isNaN; | 6 | ····return·isNaN; |
Offset 1, 7 lines modified | Offset 1, 11 lines modified | ||
1 | define( | 1 | define((function()·{ |
2 | ···· | 2 | ····//·Is·a·given·variable·an·object? |
3 | ····function·isObject(obj)·{ | ||
4 | ········var·type·=·typeof·obj; | ||
5 | ········return·type·===·'function'·||·(type·===·'object'·&&·!!obj); | ||
6 | ····} | ||
3 | ····return·is | 7 | ····return·isObject; |
4 | })); | 8 | })); |
Offset 1, 11 lines modified | Offset 1, 7 lines modified | ||
1 | define((function()·{ | 1 | define(['./index29'],·(function(_tagTester)·{ |
2 | ····var·isNumber·=·_tagTester('Number'); | ||
2 | ····//·Is·a·given·variable·an·object? | ||
3 | ····function·isObject(obj)·{ | ||
4 | ········var·type·=·typeof·obj; | ||
5 | ········return·type·===·'function'·||·(type·===·'object'·&&·!!obj); | ||
6 | ····} | ||
7 | ····return·is | 3 | ····return·isNumber; |
8 | })); | 4 | })); |
Offset 1, 20 lines modified | Offset 1, 19 lines modified | ||
1 | var·identity·=·require('./index69.js'); | ||
2 | var·isFunction·=·require('./index89.js'); | ||
1 | var·isObject·=·require('./index9 | 3 | var·isObject·=·require('./index94.js'); |
4 | var·isArray·=·require('./index79.js'); | ||
5 | var·matcher·=·require('./index110.js'); | ||
2 | var· | 6 | var·property·=·require('./index126.js'); |
7 | var·_optimizeCb·=·require('./index25.js'); | ||
3 | //·Create·a·naked·function·reference·for·surrogate-prototype-swapping. | ||
4 | function·ctor()·{ | ||
5 | · | 8 | //·An·internal·function·to·generate·callbacks·that·can·be·applied·to·each |
9 | //·element·in·a·collection,·returning·the·desired·result·—·either·`_.identity`, | ||
10 | //·an·arbitrary·callback,·a·property·matcher,·or·a·property·accessor. | ||
11 | function·baseIteratee(value,·context,·argCount)·{ | ||
12 | ····if·(value·==·null)·return·identity; | ||
13 | ····if·(isFunction(value))·return·_optimizeCb(value,·context,·argCount); | ||
14 | ····if·(isObject(value)·&&·!isArray(value))·return·matcher(value); | ||
15 | ····return·property(value); | ||
6 | } | 16 | } |
7 | //·An·internal·function·for·creating·a·new·object·that·inherits·from·another. | ||
8 | function·baseCreate(prototype)·{ | ||
9 | ····if·(!isObject(prototype))·return·{}; | ||
10 | ····if·(_setup.nativeCreate)·return·_setup.nativeCreate(prototype); | ||
11 | ····var·Ctor·=·ctor(); | ||
12 | ····Ctor.prototype·=·prototype; | ||
13 | ····var·result·=·new·Ctor; | ||
14 | ····Ctor.prototype·=·null; | ||
15 | ····return·result; | ||
16 | } | ||
17 | module.exports·=·base | 17 | module.exports·=·baseIteratee; |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·_isArrayLike·=·require('./index2 | 1 | var·_isArrayLike·=·require('./index21.js'); |
2 | var·keys·=·require('./index105.js'); | 2 | var·keys·=·require('./index105.js'); |
3 | var·_optimizeCb·=·require('./index25.js'); | 3 | var·_optimizeCb·=·require('./index25.js'); |
4 | //·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right. | 4 | //·Internal·helper·to·create·a·reducing·function,·iterating·left·or·right. |
5 | function·createReduce(dir)·{ | 5 | function·createReduce(dir)·{ |
6 | ····//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than | 6 | ····//·Wrap·code·that·reassigns·argument·variables·in·a·separate·function·than |
7 | ····//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991) | 7 | ····//·the·one·that·accesses·`arguments.length`·to·avoid·a·perf·hit.·(#1991) |
Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
1 | var·_setup·=·require('./index26.js'); | 1 | var·_setup·=·require('./index26.js'); |
2 | var·isDataView·=·require('./index82.js'); | 2 | var·isDataView·=·require('./index82.js'); |
3 | var·constant·=·require('./index43.js'); | 3 | var·constant·=·require('./index43.js'); |
4 | var·_isBufferLike·=·require('./index2 | 4 | var·_isBufferLike·=·require('./index22.js'); |
5 | //·Is·a·given·value·a·typed·array? | 5 | //·Is·a·given·value·a·typed·array? |
6 | var·typedArrayPattern·=·/\[object·((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/; | 6 | var·typedArrayPattern·=·/\[object·((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/; |
7 | function·isTypedArray(obj)·{ | 7 | function·isTypedArray(obj)·{ |
8 | ····//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available. | 8 | ····//·`ArrayBuffer.isView`·is·the·most·future-proof,·so·use·it·when·available. |
9 | ····//·Otherwise,·fall·back·on·the·above·regular·expression. | 9 | ····//·Otherwise,·fall·back·on·the·above·regular·expression. |
Offset 1, 5 lines modified | Offset 1, 12 lines modified | ||
1 | var·underscore·=·require('./index150.js'); | ||
1 | var·_ | 2 | var·_baseIteratee·=·require('./index.js'); |
2 | 3 | //·External·wrapper·for·our·callback·generator.·Users·may·customize | |
4 | //·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles. | ||
5 | //·This·abstraction·hides·the·internal-only·`argCount`·argument. | ||
6 | function·iteratee(value,·context)·{ | ||
7 | ····return·_baseIteratee(value,·context,·Infinity); | ||
8 | } | ||
9 | underscore.iteratee·=·iteratee; | ||
3 | module.exports·=·i | 10 | module.exports·=·iteratee; |
Offset 1, 12 lines modified | Offset 1, 5 lines modified | ||
1 | var·underscore·=·require('./index150.js'); | ||
2 | var·_ | 1 | var·_tagTester·=·require('./index29.js'); |
2 | var·isWeakSet·=·_tagTester('WeakSet'); | ||
3 | //·External·wrapper·for·our·callback·generator.·Users·may·customize | ||
4 | //·`_.iteratee`·if·they·want·additional·predicate/iteratee·shorthand·styles. | ||
5 | //·This·abstraction·hides·the·internal-only·`argCount`·argument. | ||
6 | function·iteratee(value,·context)·{ | ||
7 | ····return·_baseIteratee(value,·context,·Infinity); | ||
8 | } | ||
9 | underscore.iteratee·=·iteratee; | ||
10 | module.exports·=·i | 3 | module.exports·=·isWeakSet; |
Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
1 | var·isObject·=·require('./index9 | 1 | var·isObject·=·require('./index94.js'); |
2 | var·_setup·=·require('./index26.js'); | 2 | var·_setup·=·require('./index26.js'); |
3 | var·_has·=·require('./index19.js'); | 3 | var·_has·=·require('./index19.js'); |
4 | var·_collectNonEnumProps·=·require('./index | 4 | var·_collectNonEnumProps·=·require('./index3.js'); |
5 | //·Retrieve·the·names·of·an·object's·own·properties. | 5 | //·Retrieve·the·names·of·an·object's·own·properties. |
6 | //·Delegates·to·**ECMAScript·5**'s·native·`Object.keys`. | 6 | //·Delegates·to·**ECMAScript·5**'s·native·`Object.keys`. |
7 | function·keys(obj)·{ | 7 | function·keys(obj)·{ |
8 | ····if·(!isObject(obj))·return·[]; | 8 | ····if·(!isObject(obj))·return·[]; |
9 | ····if·(_setup.nativeKeys)·return·_setup.nativeKeys(obj); | 9 | ····if·(_setup.nativeKeys)·return·_setup.nativeKeys(obj); |
10 | ····var·keys·=·[]; | 10 | ····var·keys·=·[]; |
Offset 1, 8 lines modified | Offset 1, 18 lines modified | ||
1 | var·_cb·=·require('./index5.js'); | ||
2 | var·_isArrayLike·=·require('./index21.js'); | ||
1 | var· | 3 | var·keys·=·require('./index105.js'); |
2 | var·_createIndexFinder·=·require('./index8.js'); | ||
3 | //·Return·the·position·of·the·last·occurrence·of·an·item·in·an·array, | ||
4 | //·or·-1·if·the·item·is·not·included·in·the·array. | ||
5 | 4 | //·Return·the·results·of·applying·the·iteratee·to·each·element. | |
5 | function·map(obj,·iteratee,·context)·{ | ||
6 | ····iteratee·=·_cb(iteratee,·context); | ||
7 | ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), | ||
8 | ········length·=·(_keys·||·obj).length, | ||
9 | ········results·=·Array(length); | ||
10 | ····for·(var·index·=·0;·index·<·length;·index++)·{ | ||
11 | ········var·currentKey·=·_keys·?·_keys[index]·:·index; | ||
12 | ········results[index]·=·iteratee(obj[currentKey],·currentKey,·obj); | ||
13 | ····} | ||
14 | ····return·results; | ||
15 | } | ||
6 | module.exports·=· | 16 | module.exports·=·map; |
Offset 1, 18 lines modified | Offset 1, 18 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·_isArrayLike·=·require('./index20.js'); | ||
3 | var·keys·=·require('./index105.js'); | 2 | var·keys·=·require('./index105.js'); |
4 | //·Return·the·results·of·applying·the·iteratee·to·each·element. | 3 | //·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`. |
4 | //·In·contrast·to·`_.map`·it·returns·an·object. | ||
5 | function·map(obj,·iteratee,·context)·{ | 5 | function·mapObject(obj,·iteratee,·context)·{ |
6 | ····iteratee·=·_cb(iteratee,·context); | 6 | ····iteratee·=·_cb(iteratee,·context); |
7 | ····var·_keys·=· | 7 | ····var·_keys·=·keys(obj), |
8 | ········length·=· | 8 | ········length·=·_keys.length, |
9 | ········results·=· | 9 | ········results·=·{}; |
10 | ····for·(var·index·=·0;·index·<·length;·index++)·{ | 10 | ····for·(var·index·=·0;·index·<·length;·index++)·{ |
11 | ········var·currentKey·=·_keys | 11 | ········var·currentKey·=·_keys[index]; |
12 | ········results[ | 12 | ········results[currentKey]·=·iteratee(obj[currentKey],·currentKey,·obj); |
13 | ····} | 13 | ····} |
14 | ····return·results; | 14 | ····return·results; |
15 | } | 15 | } |
16 | module.exports·=·map; | 16 | module.exports·=·mapObject; |
Offset 1, 18 lines modified | Offset 1, 8 lines modified | ||
1 | var·_cb·=·require('./index3.js'); | ||
2 | var· | 1 | var·findLastIndex·=·require('./index61.js'); |
2 | var·_createIndexFinder·=·require('./index8.js'); | ||
3 | //·Return·the·position·of·the·last·occurrence·of·an·item·in·an·array, | ||
4 | //·or·-1·if·the·item·is·not·included·in·the·array. | ||
5 | var·lastIndexOf·=·_createIndexFinder(-1,·findLastIndex); | ||
3 | //·Returns·the·results·of·applying·the·`iteratee`·to·each·element·of·`obj`. | ||
4 | //·In·contrast·to·`_.map`·it·returns·an·object. | ||
5 | function·mapObject(obj,·iteratee,·context)·{ | ||
6 | ····iteratee·=·_cb(iteratee,·context); | ||
7 | ····var·_keys·=·keys(obj), | ||
8 | ········length·=·_keys.length, | ||
9 | ········results·=·{}; | ||
10 | ····for·(var·index·=·0;·index·<·length;·index++)·{ | ||
11 | ········var·currentKey·=·_keys[index]; | ||
12 | ········results[currentKey]·=·iteratee(obj[currentKey],·currentKey,·obj); | ||
13 | ····} | ||
14 | ····return·results; | ||
15 | } | ||
16 | module.exports·=· | 6 | module.exports·=·lastIndexOf; |
Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
1 | var·_isArrayLike·=·require('./index2 | 1 | var·_isArrayLike·=·require('./index21.js'); |
2 | var·values·=·require('./index156.js'); | 2 | var·values·=·require('./index156.js'); |
3 | var·_cb·=·require('./index | 3 | var·_cb·=·require('./index5.js'); |
4 | var·each·=·require('./index5 | 4 | var·each·=·require('./index51.js'); |
5 | //·Return·the·maximum·element·(or·element-based·computation). | 5 | //·Return·the·maximum·element·(or·element-based·computation). |
6 | function·max(obj,·iteratee,·context)·{ | 6 | function·max(obj,·iteratee,·context)·{ |
7 | ····var·result·=·-Infinity, | 7 | ····var·result·=·-Infinity, |
8 | ········lastComputed·=·-Infinity, | 8 | ········lastComputed·=·-Infinity, |
9 | ········value,·computed; | 9 | ········value,·computed; |
10 | ····if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ | 10 | ····if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ |
Offset 1, 20 lines modified | Offset 1, 32 lines modified | ||
1 | var·_isArrayLike·=·require('./index21.js'); | ||
1 | var· | 2 | var·values·=·require('./index156.js'); |
3 | var·_cb·=·require('./index5.js'); | ||
2 | var·each·=·require('./index5 | 4 | var·each·=·require('./index51.js'); |
3 | var·functions·=·require('./index65.js'); | ||
4 | var·_setup·=·require('./index26.js'); | ||
5 | var·_chainResult·=·require('./index4.js'); | ||
6 | //·Add·your·own·custom·functions·to·the·Underscore·object. | ||
7 | function·mixin(obj)·{ | ||
8 | ····each(functions(obj),·function(name)·{ | ||
9 | ········var·func·=·underscore[name]·=·obj[name]; | ||
10 | ········underscore.prototype[name]·=·function()·{ | ||
11 | ············var·args·=·[this._wrapped]; | ||
12 | ············_setup.push.apply(args,·arguments); | ||
13 | 5 | //·Return·the·minimum·element·(or·element-based·computation). | |
6 | function·min(obj,·iteratee,·context)·{ | ||
7 | ····var·result·=·Infinity, | ||
8 | ········lastComputed·=·Infinity, | ||
9 | ········value,·computed; | ||
10 | ····if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ | ||
11 | ········obj·=·_isArrayLike(obj)·?·obj·:·values(obj); | ||
12 | ········for·(var·i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ | ||
13 | ············value·=·obj[i]; | ||
14 | ············if·(value·!=·null·&&·value·<·result)·{ | ||
15 | ················result·=·value; | ||
16 | ············} | ||
17 | ········} | ||
18 | ····}·else·{ | ||
19 | ········iteratee·=·_cb(iteratee,·context); | ||
20 | ········each(obj,·function(v,·index,·list)·{ | ||
21 | ············computed·=·iteratee(v,·index,·list); | ||
22 | ············if·(computed·<·lastComputed·||·(computed·===·Infinity·&&·result·===·Infinity))·{ | ||
23 | ················result·=·v; | ||
24 | ················lastComputed·=·computed; | ||
25 | ············} | ||
14 | ········}; | 26 | ········}); |
15 | ····} | 27 | ····} |
16 | ····return· | 28 | ····return·result; |
17 | } | 29 | } |
18 | module.exports·=·mi | 30 | module.exports·=·min; |
Offset 1, 32 lines modified | Offset 1, 20 lines modified | ||
1 | var·_isArrayLike·=·require('./index20.js'); | ||
2 | var· | 1 | var·underscore·=·require('./index150.js'); |
3 | var·_cb·=·require('./index3.js'); | ||
4 | var·each·=·require('./index5 | 2 | var·each·=·require('./index51.js'); |
3 | var·functions·=·require('./index65.js'); | ||
4 | var·_setup·=·require('./index26.js'); | ||
5 | var·_chainResult·=·require('./index2.js'); | ||
6 | //·Add·your·own·custom·functions·to·the·Underscore·object. | ||
7 | function·mixin(obj)·{ | ||
8 | ····each(functions(obj),·function(name)·{ | ||
9 | ········var·func·=·underscore[name]·=·obj[name]; | ||
10 | ········underscore.prototype[name]·=·function()·{ | ||
11 | ············var·args·=·[this._wrapped]; | ||
12 | ············_setup.push.apply(args,·arguments); | ||
13 | ············return·_chainResult(this,·func.apply(underscore,·args)); | ||
5 | //·Return·the·minimum·element·(or·element-based·computation). | ||
6 | function·min(obj,·iteratee,·context)·{ | ||
7 | ····var·result·=·Infinity, | ||
8 | ········lastComputed·=·Infinity, | ||
9 | ········value,·computed; | ||
10 | ····if·(iteratee·==·null·||·(typeof·iteratee·==·'number'·&&·typeof·obj[0]·!=·'object'·&&·obj·!=·null))·{ | ||
11 | ········obj·=·_isArrayLike(obj)·?·obj·:·values(obj); | ||
12 | ········for·(var·i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ | ||
13 | ············value·=·obj[i]; | ||
14 | ············if·(value·!=·null·&&·value·<·result)·{ | ||
15 | ················result·=·value; | ||
16 | ············} | ||
17 | ········} | ||
18 | ····}·else·{ | ||
19 | ········iteratee·=·_cb(iteratee,·context); | ||
20 | ········each(obj,·function(v,·index,·list)·{ | ||
21 | ············computed·=·iteratee(v,·index,·list); | ||
22 | ············if·(computed·<·lastComputed·||·(computed·===·Infinity·&&·result·===·Infinity))·{ | ||
23 | ················result·=·v; | ||
24 | ················lastComputed·=·computed; | ||
25 | ············} | ||
26 | ········} | 14 | ········}; |
27 | ····} | 15 | ····}); |
28 | ····return· | 16 | ····return·underscore; |
29 | } | 17 | } |
30 | module.exports·=·min; | 18 | module.exports·=·mixin; |
Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
1 | var·restArguments·=·require('./index134.js'); | 1 | var·restArguments·=·require('./index134.js'); |
2 | var·isFunction·=·require('./index89.js'); | 2 | var·isFunction·=·require('./index89.js'); |
3 | var·negate·=·require('./index115.js'); | 3 | var·negate·=·require('./index115.js'); |
4 | var·map·=·require('./index10 | 4 | var·map·=·require('./index107.js'); |
5 | var·_flatten·=·require('./index15.js'); | 5 | var·_flatten·=·require('./index15.js'); |
6 | var·contains·=·require('./index44.js'); | 6 | var·contains·=·require('./index44.js'); |
7 | var·pick·=·require('./index124.js'); | 7 | var·pick·=·require('./index124.js'); |
8 | //·Return·a·copy·of·the·object·without·the·disallowed·properties. | 8 | //·Return·a·copy·of·the·object·without·the·disallowed·properties. |
9 | var·omit·=·restArguments(function(obj,·keys)·{ | 9 | var·omit·=·restArguments(function(obj,·keys)·{ |
10 | ····var·iteratee·=·keys[0], | 10 | ····var·iteratee·=·keys[0], |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | var·restArguments·=·require('./index134.js'); | 1 | var·restArguments·=·require('./index134.js'); |
2 | var·isFunction·=·require('./index89.js'); | 2 | var·isFunction·=·require('./index89.js'); |
3 | var·_optimizeCb·=·require('./index25.js'); | 3 | var·_optimizeCb·=·require('./index25.js'); |
4 | var·allKeys·=·require('./index34.js'); | 4 | var·allKeys·=·require('./index34.js'); |
5 | var·_keyInObj·=·require('./index2 | 5 | var·_keyInObj·=·require('./index24.js'); |
6 | var·_flatten·=·require('./index15.js'); | 6 | var·_flatten·=·require('./index15.js'); |
7 | //·Return·a·copy·of·the·object·only·containing·the·allowed·properties. | 7 | //·Return·a·copy·of·the·object·only·containing·the·allowed·properties. |
8 | var·pick·=·restArguments(function(obj,·keys)·{ | 8 | var·pick·=·restArguments(function(obj,·keys)·{ |
9 | ····var·result·=·{}, | 9 | ····var·result·=·{}, |
10 | ········iteratee·=·keys[0]; | 10 | ········iteratee·=·keys[0]; |
11 | ····if·(obj·==·null)·return·result; | 11 | ····if·(obj·==·null)·return·result; |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·map·=·require('./index10 | 1 | var·map·=·require('./index107.js'); |
2 | var·property·=·require('./index126.js'); | 2 | var·property·=·require('./index126.js'); |
3 | //·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property. | 3 | //·Convenience·version·of·a·common·use·case·of·`_.map`:·fetching·a·property. |
4 | function·pluck(obj,·key)·{ | 4 | function·pluck(obj,·key)·{ |
5 | ····return·map(obj,·property(key)); | 5 | ····return·map(obj,·property(key)); |
6 | } | 6 | } |
Offset 1, 7 lines modified | Offset 1, 23 lines modified | ||
1 | 1 | //·Generate·an·integer·Array·containing·an·arithmetic·progression.·A·port·of | |
2 | //·the·native·Python·`range()`·function.·See | ||
3 | //·[the·Python·documentation](https://docs.python.org/library/functions.html#range). | ||
4 | function·range(start,·stop,·step)·{ | ||
5 | ····if·(stop·==·null)·{ | ||
6 | ········stop·=·start·||·0; | ||
7 | ········start·=·0; | ||
8 | ····} | ||
9 | ····if·(!step)·{ | ||
10 | ········step·=·stop·<·start·?·-1·:·1; | ||
11 | ····} | ||
12 | ····var·length·=·Math.max(Math.ceil((stop·-·start)·/·step),·0); | ||
13 | ····var·range·=·Array(length); | ||
2 | //·**Reduce**·builds·up·a·single·result·from·a·list·of·values,·aka·`inject`, | ||
3 | //·or·`foldl`. | ||
4 | var·reduce·=·_createReduce(1); | ||
14 | ····for·(var·idx·=·0;·idx·<·length;·idx++,·start·+=·step)·{ | ||
15 | ········range[idx]·=·start; | ||
16 | ····} | ||
17 | ····return·range; | ||
18 | } | ||
5 | module.exports·=·r | 19 | module.exports·=·range; |
Offset 1, 23 lines modified | Offset 1, 7 lines modified | ||
1 | var·_createReduce·=·require('./index10.js'); | ||
1 | //·Generate·an·integer·Array·containing·an·arithmetic·progression.·A·port·of | ||
2 | //·the·native·Python·`range()`·function.·See | ||
3 | //·[the·Python·documentation](https://docs.python.org/library/functions.html#range). | ||
4 | function·range(start,·stop,·step)·{ | ||
5 | ····if·(stop·==·null)·{ | ||
6 | ········stop·=·start·||·0; | ||
7 | ········start·=·0; | ||
8 | ····} | ||
9 | ····if·(!step)·{ | ||
10 | ········step·=·stop·<·start·?·-1·:·1; | ||
11 | ····} | ||
12 | ····var·length·=·Math.max(Math.ceil((stop·-·start)·/·step),·0); | ||
13 | ··· | 2 | //·**Reduce**·builds·up·a·single·result·from·a·list·of·values,·aka·`inject`, |
3 | //·or·`foldl`. | ||
4 | var·reduce·=·_createReduce(1); | ||
14 | ····for·(var·idx·=·0;·idx·<·length;·idx++,·start·+=·step)·{ | ||
15 | ········range[idx]·=·start; | ||
16 | ····} | ||
17 | ····return·range; | ||
18 | } | ||
19 | module.exports·=·r | 5 | module.exports·=·reduce; |
Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
1 | var·filter·=·require('./index57.js'); | 1 | var·filter·=·require('./index57.js'); |
2 | var·negate·=·require('./index115.js'); | 2 | var·negate·=·require('./index115.js'); |
3 | var·_cb·=·require('./index | 3 | var·_cb·=·require('./index5.js'); |
4 | //·Return·all·the·elements·for·which·a·truth·test·fails. | 4 | //·Return·all·the·elements·for·which·a·truth·test·fails. |
5 | function·reject(obj,·predicate,·context)·{ | 5 | function·reject(obj,·predicate,·context)·{ |
6 | ····return·filter(obj,·negate(_cb(predicate)),·context); | 6 | ····return·filter(obj,·negate(_cb(predicate)),·context); |
7 | } | 7 | } |
8 | module.exports·=·reject; | 8 | module.exports·=·reject; |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·_isArrayLike·=·require('./index2 | 1 | var·_isArrayLike·=·require('./index21.js'); |
2 | var·values·=·require('./index156.js'); | 2 | var·values·=·require('./index156.js'); |
3 | var·_getLength·=·require('./index17.js'); | 3 | var·_getLength·=·require('./index17.js'); |
4 | var·random·=·require('./index128.js'); | 4 | var·random·=·require('./index128.js'); |
5 | var·toArray·=·require('./index147.js'); | 5 | var·toArray·=·require('./index147.js'); |
6 | //·Sample·**n**·random·values·from·a·collection·using·the·modern·version·of·the | 6 | //·Sample·**n**·random·values·from·a·collection·using·the·modern·version·of·the |
7 | //·[Fisher-Yates·shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle). | 7 | //·[Fisher-Yates·shuffle](https://en.wikipedia.org/wiki/Fisher–Yates_shuffle). |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·_isArrayLike·=·require('./index2 | 1 | var·_isArrayLike·=·require('./index21.js'); |
2 | var·keys·=·require('./index105.js'); | 2 | var·keys·=·require('./index105.js'); |
3 | //·Return·the·number·of·elements·in·a·collection. | 3 | //·Return·the·number·of·elements·in·a·collection. |
4 | function·size(obj)·{ | 4 | function·size(obj)·{ |
5 | ····if·(obj·==·null)·return·0; | 5 | ····if·(obj·==·null)·return·0; |
6 | ····return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length; | 6 | ····return·_isArrayLike(obj)·?·obj.length·:·keys(obj).length; |
7 | } | 7 | } |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·_isArrayLike·=·require('./index2 | 2 | var·_isArrayLike·=·require('./index21.js'); |
3 | var·keys·=·require('./index105.js'); | 3 | var·keys·=·require('./index105.js'); |
4 | //·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test. | 4 | //·Determine·if·at·least·one·element·in·the·object·passes·a·truth·test. |
5 | function·some(obj,·predicate,·context)·{ | 5 | function·some(obj,·predicate,·context)·{ |
6 | ····predicate·=·_cb(predicate,·context); | 6 | ····predicate·=·_cb(predicate,·context); |
7 | ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), | 7 | ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), |
8 | ········length·=·(_keys·||·obj).length; | 8 | ········length·=·(_keys·||·obj).length; |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·_baseCreate·=·require('./index.js'); | 1 | var·_baseCreate·=·require('./index4.js'); |
2 | var·isObject·=·require('./index9 | 2 | var·isObject·=·require('./index94.js'); |
3 | //·Internal·function·to·execute·`sourceFunc`·bound·to·`context`·with·optional | 3 | //·Internal·function·to·execute·`sourceFunc`·bound·to·`context`·with·optional |
4 | //·`args`.·Determines·whether·to·execute·a·function·as·a·constructor·or·as·a | 4 | //·`args`.·Determines·whether·to·execute·a·function·as·a·constructor·or·as·a |
5 | //·normal·function. | 5 | //·normal·function. |
6 | function·executeBound(sourceFunc,·boundFunc,·context,·callingContext,·args)·{ | 6 | function·executeBound(sourceFunc,·boundFunc,·context,·callingContext,·args)·{ |
7 | ····if·(!(callingContext·instanceof·boundFunc))·return·sourceFunc.apply(context,·args); | 7 | ····if·(!(callingContext·instanceof·boundFunc))·return·sourceFunc.apply(context,·args); |
8 | ····var·self·=·_baseCreate(sourceFunc.prototype); | 8 | ····var·self·=·_baseCreate(sourceFunc.prototype); |
Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·pluck·=·require('./index125.js'); | 2 | var·pluck·=·require('./index125.js'); |
3 | var·map·=·require('./index10 | 3 | var·map·=·require('./index107.js'); |
4 | //·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee. | 4 | //·Sort·the·object's·values·by·a·criterion·produced·by·an·iteratee. |
5 | function·sortBy(obj,·iteratee,·context)·{ | 5 | function·sortBy(obj,·iteratee,·context)·{ |
6 | ····var·index·=·0; | 6 | ····var·index·=·0; |
7 | ····iteratee·=·_cb(iteratee,·context); | 7 | ····iteratee·=·_cb(iteratee,·context); |
8 | ····return·pluck(map(obj,·function(value,·key,·list)·{ | 8 | ····return·pluck(map(obj,·function(value,·key,·list)·{ |
9 | ········return·{ | 9 | ········return·{ |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·_getLength·=·require('./index17.js'); | 2 | var·_getLength·=·require('./index17.js'); |
3 | //·Use·a·comparator·function·to·figure·out·the·smallest·index·at·which | 3 | //·Use·a·comparator·function·to·figure·out·the·smallest·index·at·which |
4 | //·an·object·should·be·inserted·so·as·to·maintain·order.·Uses·binary·search. | 4 | //·an·object·should·be·inserted·so·as·to·maintain·order.·Uses·binary·search. |
5 | function·sortedIndex(array,·obj,·iteratee,·context)·{ | 5 | function·sortedIndex(array,·obj,·iteratee,·context)·{ |
6 | ····iteratee·=·_cb(iteratee,·context,·1); | 6 | ····iteratee·=·_cb(iteratee,·context,·1); |
7 | ····var·value·=·iteratee(obj); | 7 | ····var·value·=·iteratee(obj); |
Offset 1, 12 lines modified | Offset 1, 12 lines modified | ||
1 | var·isArray·=·require('./index79.js'); | 1 | var·isArray·=·require('./index79.js'); |
2 | var·_setup·=·require('./index26.js'); | 2 | var·_setup·=·require('./index26.js'); |
3 | var·isString·=·require('./index98.js'); | 3 | var·isString·=·require('./index98.js'); |
4 | var·_isArrayLike·=·require('./index2 | 4 | var·_isArrayLike·=·require('./index21.js'); |
5 | var·map·=·require('./index10 | 5 | var·map·=·require('./index107.js'); |
6 | var·identity·=·require('./index69.js'); | 6 | var·identity·=·require('./index69.js'); |
7 | var·values·=·require('./index156.js'); | 7 | var·values·=·require('./index156.js'); |
8 | //·Safely·create·a·real,·live·array·from·anything·iterable. | 8 | //·Safely·create·a·real,·live·array·from·anything·iterable. |
9 | var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; | 9 | var·reStrSymbol·=·/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g; |
10 | function·toArray(obj)·{ | 10 | function·toArray(obj)·{ |
Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
1 | var·underscore·=·require('./index150.js'); | 1 | var·underscore·=·require('./index150.js'); |
2 | var·each·=·require('./index5 | 2 | var·each·=·require('./index51.js'); |
3 | var·_setup·=·require('./index26.js'); | 3 | var·_setup·=·require('./index26.js'); |
4 | var·_chainResult·=·require('./index | 4 | var·_chainResult·=·require('./index2.js'); |
5 | //·Add·all·mutator·`Array`·functions·to·the·wrapper. | 5 | //·Add·all·mutator·`Array`·functions·to·the·wrapper. |
6 | each(['pop',·'push',·'reverse',·'shift',·'sort',·'splice',·'unshift'],·function(name)·{ | 6 | each(['pop',·'push',·'reverse',·'shift',·'sort',·'splice',·'unshift'],·function(name)·{ |
7 | ····var·method·=·_setup.ArrayProto[name]; | 7 | ····var·method·=·_setup.ArrayProto[name]; |
8 | ····underscore.prototype[name]·=·function()·{ | 8 | ····underscore.prototype[name]·=·function()·{ |
9 | ········var·obj·=·this._wrapped; | 9 | ········var·obj·=·this._wrapped; |
10 | ········if·(obj·!=·null)·{ | 10 | ········if·(obj·!=·null)·{ |
Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
1 | var·_getLength·=·require('./index17.js'); | 1 | var·_getLength·=·require('./index17.js'); |
2 | var·_isArrayLike·=·require('./index2 | 2 | var·_isArrayLike·=·require('./index21.js'); |
3 | var·isArray·=·require('./index79.js'); | 3 | var·isArray·=·require('./index79.js'); |
4 | var·isArguments·=·require('./index7 | 4 | var·isArguments·=·require('./index77.js'); |
5 | //·Internal·implementation·of·a·recursive·`flatten`·function. | 5 | //·Internal·implementation·of·a·recursive·`flatten`·function. |
6 | function·flatten(input,·depth,·strict,·output)·{ | 6 | function·flatten(input,·depth,·strict,·output)·{ |
7 | ····output·=·output·||·[]; | 7 | ····output·=·output·||·[]; |
8 | ····if·(!depth·&&·depth·!==·0)·{ | 8 | ····if·(!depth·&&·depth·!==·0)·{ |
9 | ········depth·=·Infinity; | 9 | ········depth·=·Infinity; |
10 | ····}·else·if·(depth·<=·0)·{ | 10 | ····}·else·if·(depth·<=·0)·{ |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·isBoolean·=·require('./index81.js'); | 1 | var·isBoolean·=·require('./index81.js'); |
2 | var·_cb·=·require('./index | 2 | var·_cb·=·require('./index5.js'); |
3 | var·_getLength·=·require('./index17.js'); | 3 | var·_getLength·=·require('./index17.js'); |
4 | var·contains·=·require('./index44.js'); | 4 | var·contains·=·require('./index44.js'); |
5 | //·Produce·a·duplicate-free·version·of·the·array.·If·the·array·has·already | 5 | //·Produce·a·duplicate-free·version·of·the·array.·If·the·array·has·already |
6 | //·been·sorted,·you·have·the·option·of·using·a·faster·algorithm. | 6 | //·been·sorted,·you·have·the·option·of·using·a·faster·algorithm. |
7 | //·The·faster·algorithm·will·not·work·with·an·iteratee·if·the·iteratee | 7 | //·The·faster·algorithm·will·not·work·with·an·iteratee·if·the·iteratee |
8 | //·is·not·a·one-to-one·function,·so·providing·an·iteratee·will·disable | 8 | //·is·not·a·one-to-one·function,·so·providing·an·iteratee·will·disable |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·restArguments·=·require('./index134.js'); | 1 | var·restArguments·=·require('./index134.js'); |
2 | var·difference·=·require('./index5 | 2 | var·difference·=·require('./index50.js'); |
3 | //·Return·a·version·of·the·array·that·does·not·contain·the·specified·value(s). | 3 | //·Return·a·version·of·the·array·that·does·not·contain·the·specified·value(s). |
4 | var·without·=·restArguments(function(array,·otherArrays)·{ | 4 | var·without·=·restArguments(function(array,·otherArrays)·{ |
5 | ····return·difference(array,·otherArrays); | 5 | ····return·difference(array,·otherArrays); |
6 | }); | 6 | }); |
7 | module.exports·=·without; | 7 | module.exports·=·without; |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·each·=·require('./index5 | 2 | var·each·=·require('./index51.js'); |
3 | //·An·internal·function·used·for·aggregate·"group·by"·operations. | 3 | //·An·internal·function·used·for·aggregate·"group·by"·operations. |
4 | function·group(behavior,·partition)·{ | 4 | function·group(behavior,·partition)·{ |
5 | ····return·function(obj,·iteratee,·context)·{ | 5 | ····return·function(obj,·iteratee,·context)·{ |
6 | ········var·result·=·partition·?·[ | 6 | ········var·result·=·partition·?·[ |
7 | ············[], | 7 | ············[], |
8 | ············[] | 8 | ············[] |
Offset 1, 19 lines modified | Offset 1, 8 lines modified | ||
1 | var·identity·=·require('./index69.js'); | ||
2 | var·isFunction·=·require('./index89.js'); | ||
3 | var·isObject·=·require('./index95.js'); | ||
4 | var·isArray·=·require('./index79.js'); | ||
5 | var· | 1 | var·underscore·=·require('./index150.js'); |
6 | var·property·=·require('./index126.js'); | ||
7 | var·_optimizeCb·=·require('./index25.js'); | ||
2 | //·Helper·function·to·continue·chaining·intermediate·results. | ||
3 | function·chainResult(instance,·obj)·{ | ||
4 | ····return·instance._chain·?·underscore(obj).chain()·:·obj; | ||
8 | //·An·internal·function·to·generate·callbacks·that·can·be·applied·to·each | ||
9 | //·element·in·a·collection,·returning·the·desired·result·—·either·`_.identity`, | ||
10 | //·an·arbitrary·callback,·a·property·matcher,·or·a·property·accessor. | ||
11 | function·baseIteratee(value,·context,·argCount)·{ | ||
12 | ····if·(value·==·null)·return·identity; | ||
13 | ····if·(isFunction(value))·return·_optimizeCb(value,·context,·argCount); | ||
14 | ····if·(isObject(value)·&&·!isArray(value))·return·matcher(value); | ||
15 | ····return·property(value); | ||
16 | } | 5 | } |
17 | module.exports·=· | 6 | module.exports·=·chainResult; |
Offset 1, 10 lines modified | Offset 1, 5 lines modified | ||
1 | var·_createSizePropertyCheck·=·require('./index11.js'); | ||
2 | var·_ | 1 | var·_tagTester·=·require('./index29.js'); |
2 | var·hasObjectTag·=·_tagTester('Object'); | ||
3 | //·Internal·helper·for·collection·methods·to·determine·whether·a·collection | ||
4 | //·should·be·iterated·as·an·array·or·as·an·object. | ||
5 | //·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength | ||
6 | //·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094 | ||
7 | var·isArrayLike·=·_createSizePropertyCheck(_getLength); | ||
8 | module.exports·=· | 3 | module.exports·=·hasObjectTag; |
Offset 1, 7 lines modified | Offset 1, 10 lines modified | ||
1 | var·_createSizePropertyCheck·=·require('./index11.js'); | ||
2 | var·_getLength·=·require('./index17.js'); | ||
1 | //·Internal·`_.pick`·helper·function·to·determine·whether·`key`·is·an·enumerable | ||
2 | //·property·name·of·`obj`. | ||
3 | function·keyInObj(value,·key,·obj)·{ | ||
4 | ····return·key·in·obj; | ||
5 | } | ||
6 | 3 | //·Internal·helper·for·collection·methods·to·determine·whether·a·collection | |
4 | //·should·be·iterated·as·an·array·or·as·an·object. | ||
5 | //·Related:·https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength | ||
6 | //·Avoids·a·very·nasty·iOS·8·JIT·bug·on·ARM-64.·#2094 | ||
7 | var·isArrayLike·=·_createSizePropertyCheck(_getLength); | ||
8 | module.exports·=·isArrayLike; |
Offset 1, 5 lines modified | Offset 1, 8 lines modified | ||
1 | var·_createSizePropertyCheck·=·require('./index11.js'); | ||
1 | var·_t | 2 | var·_getByteLength·=·require('./index16.js'); |
2 | 3 | //·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against | |
4 | //·`ArrayBuffer`·et·al. | ||
5 | var·isBufferLike·=·_createSizePropertyCheck(_getByteLength); | ||
3 | module.exports·=· | 6 | module.exports·=·isBufferLike; |
Offset 1, 8 lines modified | Offset 1, 7 lines modified | ||
1 | var·_createSizePropertyCheck·=·require('./index11.js'); | ||
2 | 1 | //·Internal·`_.pick`·helper·function·to·determine·whether·`key`·is·an·enumerable | |
2 | //·property·name·of·`obj`. | ||
3 | function·keyInObj(value,·key,·obj)·{ | ||
4 | ····return·key·in·obj; | ||
5 | } | ||
6 | module.exports·=·keyInObj; | ||
3 | //·Internal·helper·to·determine·whether·we·should·spend·extensive·checks·against | ||
4 | //·`ArrayBuffer`·et·al. | ||
5 | var·isBufferLike·=·_createSizePropertyCheck(_getByteLength); | ||
6 | module.exports·=·isBufferLike; |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·_setup·=·require('./index26.js'); | 1 | var·_setup·=·require('./index26.js'); |
2 | var·_hasObjectTag·=·require('./index2 | 2 | var·_hasObjectTag·=·require('./index20.js'); |
3 | //·In·IE·10·-·Edge·13,·`DataView`·has·string·tag·`'[object·Object]'`. | 3 | //·In·IE·10·-·Edge·13,·`DataView`·has·string·tag·`'[object·Object]'`. |
4 | //·In·IE·11,·the·most·common·among·them,·this·problem·also·applies·to | 4 | //·In·IE·11,·the·most·common·among·them,·this·problem·also·applies·to |
5 | //·`Map`,·`WeakMap`·and·`Set`. | 5 | //·`Map`,·`WeakMap`·and·`Set`. |
6 | var·hasStringTagBug·=·( | 6 | var·hasStringTagBug·=·( |
7 | ········_setup.supportsDataView·&&·_hasObjectTag(new·DataView(new·ArrayBuffer(8))) | 7 | ········_setup.supportsDataView·&&·_hasObjectTag(new·DataView(new·ArrayBuffer(8))) |
8 | ····), | 8 | ····), |
Offset 1, 12 lines modified | Offset 1, 44 lines modified | ||
1 | var·underscore·=·require('./index150.js'); | ||
2 | var·_ | 1 | var·_setup·=·require('./index26.js'); |
2 | var·isFunction·=·require('./index89.js'); | ||
3 | var· | 3 | var·_has·=·require('./index19.js'); |
4 | //·The·function·we·call·internally·to·generate·a·callback.·It·invokes | ||
5 | //·`_.iteratee`·if·overridden,·otherwise·`baseIteratee`. | ||
6 | function·cb(value,·context,·argCount)·{ | ||
7 | ····if·(underscore.iteratee·!==·iteratee)·return·underscore.iteratee(value,·context); | ||
8 | 4 | //·Internal·helper·to·create·a·simple·lookup·structure. | |
5 | //·`collectNonEnumProps`·used·to·depend·on·`_.contains`,·but·this·led·to | ||
6 | //·circular·imports.·`emulatedSet`·is·a·one-off·solution·that·only·works·for | ||
7 | //·arrays·of·strings. | ||
8 | function·emulatedSet(keys)·{ | ||
9 | ····var·hash·=·{}; | ||
10 | ····for·(var·l·=·keys.length,·i·=·0;·i·<·l;·++i)·hash[keys[i]]·=·true; | ||
11 | ····return·{ | ||
12 | ········contains:·function(key)·{ | ||
13 | ············return·hash[key]·===·true; | ||
14 | ········}, | ||
15 | ········push:·function(key)·{ | ||
16 | ············hash[key]·=·true; | ||
17 | ············return·keys.push(key); | ||
18 | ········} | ||
19 | ····}; | ||
9 | } | 20 | } |
10 | 21 | //·Internal·helper.·Checks·`keys`·for·the·presence·of·keys·in·IE·<·9·that·won't | |
22 | //·be·iterated·by·`for·key·in·...`·and·thus·missed.·Extends·`keys`·in·place·if | ||
23 | //·needed. | ||
24 | function·collectNonEnumProps(obj,·keys)·{ | ||
25 | ····keys·=·emulatedSet(keys); | ||
26 | ····var·nonEnumIdx·=·_setup.nonEnumerableProps.length; | ||
27 | ····var·constructor·=·obj.constructor; | ||
28 | ····var·proto·=·(isFunction(constructor)·&&·constructor.prototype)·||·_setup.ObjProto; | ||
29 | ····//·Constructor·is·a·special·case. | ||
30 | ····var·prop·=·'constructor'; | ||
31 | ····if·(_has(obj,·prop)·&&·!keys.contains(prop))·keys.push(prop); | ||
32 | ····while·(nonEnumIdx--)·{ | ||
33 | ········prop·=·_setup.nonEnumerableProps[nonEnumIdx]; | ||
34 | ········if·(prop·in·obj·&&·obj[prop]·!==·proto[prop]·&&·!keys.contains(prop))·{ | ||
35 | ············keys.push(prop); | ||
36 | ········} | ||
37 | ····} | ||
38 | } | ||
39 | module.exports·=·collectNonEnumProps; |
Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
1 | var·isObject·=·require('./index9 | 1 | var·isObject·=·require('./index94.js'); |
2 | var·_setup·=·require('./index26.js'); | 2 | var·_setup·=·require('./index26.js'); |
3 | var·_collectNonEnumProps·=·require('./index | 3 | var·_collectNonEnumProps·=·require('./index3.js'); |
4 | //·Retrieve·all·the·enumerable·property·names·of·an·object. | 4 | //·Retrieve·all·the·enumerable·property·names·of·an·object. |
5 | function·allKeys(obj)·{ | 5 | function·allKeys(obj)·{ |
6 | ····if·(!isObject(obj))·return·[]; | 6 | ····if·(!isObject(obj))·return·[]; |
7 | ····var·keys·=·[]; | 7 | ····var·keys·=·[]; |
8 | ····for·(var·key·in·obj)·keys.push(key); | 8 | ····for·(var·key·in·obj)·keys.push(key); |
9 | ····//·Ahem,·IE·<·9. | 9 | ····//·Ahem,·IE·<·9. |
Offset 1, 19 lines modified | Offset 1, 10 lines modified | ||
1 | var·restArguments·=·require('./index134.js'); | ||
2 | var·_flatten·=·require('./index15.js'); | ||
3 | var· | 1 | var·underscore·=·require('./index150.js'); |
2 | //·Start·chaining·a·wrapped·Underscore·object. | ||
3 | function·chain(obj)·{ | ||
4 | ····var·instance·=·underscore(obj); | ||
5 | ····instance._chain·=·true; | ||
6 | ····return·instance; | ||
7 | } | ||
4 | //·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments | ||
5 | //·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks | ||
6 | //·defined·on·an·object·belong·to·it. | ||
7 | var·bindAll·=·restArguments(function(obj,·keys)·{ | ||
8 | ····keys·=·_flatten(keys,·false,·false); | ||
9 | ····var·index·=·keys.length; | ||
10 | ····if·(index·<·1)·throw·new·Error('bindAll·must·be·passed·function·names'); | ||
11 | ····while·(index--)·{ | ||
12 | ········var·key·=·keys[index]; | ||
13 | ········obj[key]·=·bind(obj[key],·obj); | ||
14 | ····} | ||
15 | ····return·obj; | ||
16 | }); | ||
17 | module.exports·=· | 8 | module.exports·=·chain; |
Offset 1, 10 lines modified | Offset 1, 19 lines modified | ||
1 | var·restArguments·=·require('./index134.js'); | ||
2 | var·_flatten·=·require('./index15.js'); | ||
1 | var· | 3 | var·bind·=·require('./index36.js'); |
2 | //·Start·chaining·a·wrapped·Underscore·object. | ||
3 | function·chain(obj)·{ | ||
4 | ····var·instance·=·underscore(obj); | ||
5 | ····instance._chain·=·true; | ||
6 | ····return·instance; | ||
7 | 4 | //·Bind·a·number·of·an·object's·methods·to·that·object.·Remaining·arguments | |
5 | //·are·the·method·names·to·be·bound.·Useful·for·ensuring·that·all·callbacks | ||
6 | //·defined·on·an·object·belong·to·it. | ||
7 | var·bindAll·=·restArguments(function(obj,·keys)·{ | ||
8 | ····keys·=·_flatten(keys,·false,·false); | ||
9 | ····var·index·=·keys.length; | ||
10 | ····if·(index·<·1)·throw·new·Error('bindAll·must·be·passed·function·names'); | ||
11 | ····while·(index--)·{ | ||
12 | ········var·key·=·keys[index]; | ||
13 | ········obj[key]·=·bind(obj[key],·obj); | ||
14 | ····} | ||
15 | ····return·obj; | ||
16 | }); | ||
8 | module.exports·=· | 17 | module.exports·=·bindAll; |
Offset 1, 8 lines modified | Offset 1, 20 lines modified | ||
1 | var· | 1 | var·isObject·=·require('./index94.js'); |
2 | var·_setup·=·require('./index26.js'); | ||
2 | //·Helper·function·to·continue·chaining·intermediate·results. | ||
3 | function·chainResult(instance,·obj)·{ | ||
4 | 3 | //·Create·a·naked·function·reference·for·surrogate-prototype-swapping. | |
4 | function·ctor()·{ | ||
5 | ····return·function()·{}; | ||
5 | } | 6 | } |
6 | 7 | //·An·internal·function·for·creating·a·new·object·that·inherits·from·another. | |
8 | function·baseCreate(prototype)·{ | ||
9 | ····if·(!isObject(prototype))·return·{}; | ||
10 | ····if·(_setup.nativeCreate)·return·_setup.nativeCreate(prototype); | ||
11 | ····var·Ctor·=·ctor(); | ||
12 | ····Ctor.prototype·=·prototype; | ||
13 | ····var·result·=·new·Ctor; | ||
14 | ····Ctor.prototype·=·null; | ||
15 | ····return·result; | ||
16 | } | ||
17 | module.exports·=·baseCreate; |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·isObject·=·require('./index9 | 1 | var·isObject·=·require('./index94.js'); |
2 | var·isArray·=·require('./index79.js'); | 2 | var·isArray·=·require('./index79.js'); |
3 | var·extend·=·require('./index55.js'); | 3 | var·extend·=·require('./index55.js'); |
4 | //·Create·a·(shallow-cloned)·duplicate·of·an·object. | 4 | //·Create·a·(shallow-cloned)·duplicate·of·an·object. |
5 | function·clone(obj)·{ | 5 | function·clone(obj)·{ |
6 | ····if·(!isObject(obj))·return·obj; | 6 | ····if·(!isObject(obj))·return·obj; |
7 | ····return·isArray(obj)·?·obj.slice()·:·extend({},·obj); | 7 | ····return·isArray(obj)·?·obj.slice()·:·extend({},·obj); |
Offset 1, 8 lines modified | Offset 1, 14 lines modified | ||
1 | //·Returns·a·function·that·is·the·composition·of·a·list·of·functions,·each | ||
2 | //·consuming·the·return·value·of·the·function·that·follows. | ||
1 | var·filter·=·require('./index57.js'); | ||
2 | //·Trim·out·all·falsy·values·from·an·array. | ||
3 | function·comp | 3 | function·compose()·{ |
4 | ···· | 4 | ····var·args·=·arguments; |
5 | ····var·start·=·args.length·-·1; | ||
6 | ····return·function()·{ | ||
7 | ········var·i·=·start; | ||
8 | ········var·result·=·args[start].apply(this,·arguments); | ||
9 | ········while·(i--)·result·=·args[i].call(this,·result); | ||
10 | ········return·result; | ||
11 | ····}; | ||
5 | } | 12 | } |
6 | module.exports·=·comp | 13 | module.exports·=·compose; |
Offset 1, 14 lines modified | Offset 1, 8 lines modified | ||
1 | //·Returns·a·function·that·is·the·composition·of·a·list·of·functions,·each | ||
2 | 1 | var·filter·=·require('./index57.js'); | |
2 | //·Trim·out·all·falsy·values·from·an·array. | ||
3 | function·comp | 3 | function·compact(array)·{ |
4 | ····return·filter(array,·Boolean); | ||
4 | ····var·args·=·arguments; | ||
5 | ····var·start·=·args.length·-·1; | ||
6 | ····return·function()·{ | ||
7 | ········var·i·=·start; | ||
8 | ········var·result·=·args[start].apply(this,·arguments); | ||
9 | ········while·(i--)·result·=·args[i].call(this,·result); | ||
10 | ········return·result; | ||
11 | ····}; | ||
12 | } | 5 | } |
13 | module.exports·=·comp | 6 | module.exports·=·compact; |
Offset 1, 10 lines modified | Offset 1, 10 lines modified | ||
1 | var·_isArrayLike·=·require('./index2 | 1 | var·_isArrayLike·=·require('./index21.js'); |
2 | var·values·=·require('./index156.js'); | 2 | var·values·=·require('./index156.js'); |
3 | var·indexOf·=·require('./index7 | 3 | var·indexOf·=·require('./index74.js'); |
4 | //·Determine·if·the·array·or·object·contains·a·given·item·(using·`===`). | 4 | //·Determine·if·the·array·or·object·contains·a·given·item·(using·`===`). |
5 | function·contains(obj,·item,·fromIndex,·guard)·{ | 5 | function·contains(obj,·item,·fromIndex,·guard)·{ |
6 | ····if·(!_isArrayLike(obj))·obj·=·values(obj); | 6 | ····if·(!_isArrayLike(obj))·obj·=·values(obj); |
7 | ····if·(typeof·fromIndex·!=·'number'·||·guard)·fromIndex·=·0; | 7 | ····if·(typeof·fromIndex·!=·'number'·||·guard)·fromIndex·=·0; |
8 | ····return·indexOf(obj,·item,·fromIndex)·>=·0; | 8 | ····return·indexOf(obj,·item,·fromIndex)·>=·0; |
9 | } | 9 | } |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·_baseCreate·=·require('./index.js'); | 1 | var·_baseCreate·=·require('./index4.js'); |
2 | var·extendOwn·=·require('./index56.js'); | 2 | var·extendOwn·=·require('./index56.js'); |
3 | //·Creates·an·object·that·inherits·from·the·given·prototype·object. | 3 | //·Creates·an·object·that·inherits·from·the·given·prototype·object. |
4 | //·If·additional·properties·are·provided·then·they·will·be·added·to·the | 4 | //·If·additional·properties·are·provided·then·they·will·be·added·to·the |
5 | //·created·object. | 5 | //·created·object. |
6 | function·create(prototype,·props)·{ | 6 | function·create(prototype,·props)·{ |
7 | ····var·result·=·_baseCreate(prototype); | 7 | ····var·result·=·_baseCreate(prototype); |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·partial·=·require('./index122.js'); | 1 | var·partial·=·require('./index122.js'); |
2 | var·delay·=·require('./index5 | 2 | var·delay·=·require('./index52.js'); |
3 | var·underscore·=·require('./index150.js'); | 3 | var·underscore·=·require('./index150.js'); |
4 | //·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has | 4 | //·Defers·a·function,·scheduling·it·to·run·after·the·current·call·stack·has |
5 | //·cleared. | 5 | //·cleared. |
6 | var·defer·=·partial(delay,·underscore,·1); | 6 | var·defer·=·partial(delay,·underscore,·1); |
7 | module.exports·=·defer; | 7 | module.exports·=·defer; |
Offset 1, 44 lines modified | Offset 1, 12 lines modified | ||
1 | var·underscore·=·require('./index150.js'); | ||
1 | var·_set | 2 | var·_baseIteratee·=·require('./index.js'); |
2 | var·isFunction·=·require('./index89.js'); | ||
3 | var· | 3 | var·iteratee·=·require('./index103.js'); |
4 | //·The·function·we·call·internally·to·generate·a·callback.·It·invokes | ||
5 | //·`_.iteratee`·if·overridden,·otherwise·`baseIteratee`. | ||
6 | function·cb(value,·context,·argCount)·{ | ||
7 | ····if·(underscore.iteratee·!==·iteratee)·return·underscore.iteratee(value,·context); | ||
8 | ····return·_baseIteratee(value,·context,·argCount); | ||
4 | //·Internal·helper·to·create·a·simple·lookup·structure. | ||
5 | //·`collectNonEnumProps`·used·to·depend·on·`_.contains`,·but·this·led·to | ||
6 | //·circular·imports.·`emulatedSet`·is·a·one-off·solution·that·only·works·for | ||
7 | //·arrays·of·strings. | ||
8 | function·emulatedSet(keys)·{ | ||
9 | ····var·hash·=·{}; | ||
10 | ····for·(var·l·=·keys.length,·i·=·0;·i·<·l;·++i)·hash[keys[i]]·=·true; | ||
11 | ····return·{ | ||
12 | ········contains:·function(key)·{ | ||
13 | ············return·hash[key]·===·true; | ||
14 | ········}, | ||
15 | ········push:·function(key)·{ | ||
16 | ············hash[key]·=·true; | ||
17 | ············return·keys.push(key); | ||
18 | ········} | ||
19 | ····}; | ||
20 | } | 9 | } |
10 | module.exports·=·cb; | ||
21 | //·Internal·helper.·Checks·`keys`·for·the·presence·of·keys·in·IE·<·9·that·won't | ||
22 | //·be·iterated·by·`for·key·in·...`·and·thus·missed.·Extends·`keys`·in·place·if | ||
23 | //·needed. | ||
24 | function·collectNonEnumProps(obj,·keys)·{ | ||
25 | ····keys·=·emulatedSet(keys); | ||
26 | ····var·nonEnumIdx·=·_setup.nonEnumerableProps.length; | ||
27 | ····var·constructor·=·obj.constructor; | ||
28 | ····var·proto·=·(isFunction(constructor)·&&·constructor.prototype)·||·_setup.ObjProto; | ||
29 | ····//·Constructor·is·a·special·case. | ||
30 | ····var·prop·=·'constructor'; | ||
31 | ····if·(_has(obj,·prop)·&&·!keys.contains(prop))·keys.push(prop); | ||
32 | ····while·(nonEnumIdx--)·{ | ||
33 | ········prop·=·_setup.nonEnumerableProps[nonEnumIdx]; | ||
34 | ········if·(prop·in·obj·&&·obj[prop]·!==·proto[prop]·&&·!keys.contains(prop))·{ | ||
35 | ············keys.push(prop); | ||
36 | ········} | ||
37 | ····} | ||
38 | } | ||
39 | module.exports·=·collectNonEnumProps; |
Offset 1, 11 lines modified | Offset 1, 15 lines modified | ||
1 | var·restArguments·=·require('./index134.js'); | 1 | var·restArguments·=·require('./index134.js'); |
2 | var·_flatten·=·require('./index15.js'); | ||
3 | var·filter·=·require('./index57.js'); | ||
4 | var·contains·=·require('./index44.js'); | ||
2 | //·Delays·a·function·for·the·given·number·of·milliseconds,·and·then·calls | ||
3 | //·it·with·the·arguments·supplied. | ||
4 | var·delay·=·restArguments(function(func,·wait,·args)·{ | ||
5 | ····return·setTimeout(function()·{ | ||
6 | ········return·func.apply(null,·args); | ||
7 | ···· | 5 | //·Take·the·difference·between·one·array·and·a·number·of·other·arrays. |
6 | //·Only·the·elements·present·in·just·the·first·array·will·remain. | ||
7 | var·difference·=·restArguments(function(array,·rest)·{ | ||
8 | ····rest·=·_flatten(rest,·true,·true); | ||
9 | ····return·filter(array,·function(value)·{ | ||
10 | ········return·!contains(rest,·value); | ||
11 | ····}); | ||
8 | }); | 12 | }); |
9 | module.exports·=·de | 13 | module.exports·=·difference; |
Offset 1, 15 lines modified | Offset 1, 25 lines modified | ||
1 | var·_optimizeCb·=·require('./index25.js'); | ||
1 | var· | 2 | var·_isArrayLike·=·require('./index21.js'); |
2 | var· | 3 | var·keys·=·require('./index105.js'); |
3 | var·filter·=·require('./index57.js'); | ||
4 | var·contains·=·require('./index44.js'); | ||
5 | //·Take·the·difference·between·one·array·and·a·number·of·other·arrays. | ||
6 | //·Only·the·elements·present·in·just·the·first·array·will·remain. | ||
7 | var·difference·=·restArguments(function(array,·rest)·{ | ||
8 | ····rest·=·_flatten(rest,·true,·true); | ||
9 | ····return·filter(array,·function(value)·{ | ||
10 | 4 | //·The·cornerstone·for·collection·functions,·an·`each` | |
5 | //·implementation,·aka·`forEach`. | ||
6 | //·Handles·raw·objects·in·addition·to·array-likes.·Treats·all | ||
7 | //·sparse·array-likes·as·if·they·were·dense. | ||
8 | function·each(obj,·iteratee,·context)·{ | ||
9 | ····iteratee·=·_optimizeCb(iteratee,·context); | ||
10 | ····var·i,·length; | ||
11 | ····if·(_isArrayLike(obj))·{ | ||
12 | ········for·(i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ | ||
13 | ············iteratee(obj[i],·i,·obj); | ||
14 | ········} | ||
15 | ····}·else·{ | ||
16 | ········var·_keys·=·keys(obj); | ||
17 | ········for·(i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ | ||
18 | ············iteratee(obj[_keys[i]],·_keys[i],·obj); | ||
19 | ········} | ||
11 | ····} | 20 | ····} |
12 | 21 | ····return·obj; | |
22 | } | ||
13 | module.exports·=· | 23 | module.exports·=·each; |
Offset 1, 25 lines modified | Offset 1, 11 lines modified | ||
1 | var·_optimizeCb·=·require('./index25.js'); | ||
2 | var·_isArrayLike·=·require('./index20.js'); | ||
3 | var· | 1 | var·restArguments·=·require('./index134.js'); |
2 | //·Delays·a·function·for·the·given·number·of·milliseconds,·and·then·calls | ||
3 | //·it·with·the·arguments·supplied. | ||
4 | var·delay·=·restArguments(function(func,·wait,·args)·{ | ||
5 | ····return·setTimeout(function()·{ | ||
6 | ········return·func.apply(null,·args); | ||
7 | ····},·wait); | ||
8 | }); | ||
4 | //·The·cornerstone·for·collection·functions,·an·`each` | ||
5 | //·implementation,·aka·`forEach`. | ||
6 | //·Handles·raw·objects·in·addition·to·array-likes.·Treats·all | ||
7 | //·sparse·array-likes·as·if·they·were·dense. | ||
8 | function·each(obj,·iteratee,·context)·{ | ||
9 | ····iteratee·=·_optimizeCb(iteratee,·context); | ||
10 | ····var·i,·length; | ||
11 | ····if·(_isArrayLike(obj))·{ | ||
12 | ········for·(i·=·0,·length·=·obj.length;·i·<·length;·i++)·{ | ||
13 | ············iteratee(obj[i],·i,·obj); | ||
14 | ········} | ||
15 | ····}·else·{ | ||
16 | ········var·_keys·=·keys(obj); | ||
17 | ········for·(i·=·0,·length·=·_keys.length;·i·<·length;·i++)·{ | ||
18 | ············iteratee(obj[_keys[i]],·_keys[i],·obj); | ||
19 | ········} | ||
20 | ····} | ||
21 | ····return·obj; | ||
22 | } | ||
23 | module.exports·=·e | 9 | module.exports·=·delay; |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·_isArrayLike·=·require('./index2 | 2 | var·_isArrayLike·=·require('./index21.js'); |
3 | var·keys·=·require('./index105.js'); | 3 | var·keys·=·require('./index105.js'); |
4 | //·Determine·whether·all·of·the·elements·pass·a·truth·test. | 4 | //·Determine·whether·all·of·the·elements·pass·a·truth·test. |
5 | function·every(obj,·predicate,·context)·{ | 5 | function·every(obj,·predicate,·context)·{ |
6 | ····predicate·=·_cb(predicate,·context); | 6 | ····predicate·=·_cb(predicate,·context); |
7 | ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), | 7 | ····var·_keys·=·!_isArrayLike(obj)·&&·keys(obj), |
8 | ········length·=·(_keys·||·obj).length; | 8 | ········length·=·(_keys·||·obj).length; |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·each·=·require('./index5 | 2 | var·each·=·require('./index51.js'); |
3 | //·Return·all·the·elements·that·pass·a·truth·test. | 3 | //·Return·all·the·elements·that·pass·a·truth·test. |
4 | function·filter(obj,·predicate,·context)·{ | 4 | function·filter(obj,·predicate,·context)·{ |
5 | ····var·results·=·[]; | 5 | ····var·results·=·[]; |
6 | ····predicate·=·_cb(predicate,·context); | 6 | ····predicate·=·_cb(predicate,·context); |
7 | ····each(obj,·function(value,·index,·list)·{ | 7 | ····each(obj,·function(value,·index,·list)·{ |
8 | ········if·(predicate(value,·index,·list))·results.push(value); | 8 | ········if·(predicate(value,·index,·list))·results.push(value); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·_isArrayLike·=·require('./index2 | 1 | var·_isArrayLike·=·require('./index21.js'); |
2 | var·findIndex·=·require('./index59.js'); | 2 | var·findIndex·=·require('./index59.js'); |
3 | var·findKey·=·require('./index60.js'); | 3 | var·findKey·=·require('./index60.js'); |
4 | //·Return·the·first·value·which·passes·a·truth·test. | 4 | //·Return·the·first·value·which·passes·a·truth·test. |
5 | function·find(obj,·predicate,·context)·{ | 5 | function·find(obj,·predicate,·context)·{ |
6 | ····var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey; | 6 | ····var·keyFinder·=·_isArrayLike(obj)·?·findIndex·:·findKey; |
7 | ····var·key·=·keyFinder(obj,·predicate,·context); | 7 | ····var·key·=·keyFinder(obj,·predicate,·context); |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·keys·=·require('./index105.js'); | 2 | var·keys·=·require('./index105.js'); |
3 | //·Returns·the·first·key·on·an·object·that·passes·a·truth·test. | 3 | //·Returns·the·first·key·on·an·object·that·passes·a·truth·test. |
4 | function·findKey(obj,·predicate,·context)·{ | 4 | function·findKey(obj,·predicate,·context)·{ |
5 | ····predicate·=·_cb(predicate,·context); | 5 | ····predicate·=·_cb(predicate,·context); |
6 | ····var·_keys·=·keys(obj), | 6 | ····var·_keys·=·keys(obj), |
7 | ········key; | 7 | ········key; |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·initial·=·require('./index7 | 1 | var·initial·=·require('./index73.js'); |
2 | //·Get·the·first·element·of·an·array.·Passing·**n**·will·return·the·first·N | 2 | //·Get·the·first·element·of·an·array.·Passing·**n**·will·return·the·first·N |
3 | //·values·in·the·array.·The·**guard**·check·allows·it·to·work·with·`_.map`. | 3 | //·values·in·the·array.·The·**guard**·check·allows·it·to·work·with·`_.map`. |
4 | function·first(array,·n,·guard)·{ | 4 | function·first(array,·n,·guard)·{ |
5 | ····if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[]; | 5 | ····if·(array·==·null·||·array.length·<·1)·return·n·==·null·||·guard·?·void·0·:·[]; |
6 | ····if·(n·==·null·||·guard)·return·array[0]; | 6 | ····if·(n·==·null·||·guard)·return·array[0]; |
7 | ····return·initial(array,·array.length·-·n); | 7 | ····return·initial(array,·array.length·-·n); |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·index·=·require('./index71.js'); | 1 | var·index·=·require('./index71.js'); |
2 | var·mixin·=·require('./index11 | 2 | var·mixin·=·require('./index114.js'); |
3 | //·Default·Export | 3 | //·Default·Export |
4 | //·============== | 4 | //·============== |
5 | //·In·this·module,·we·mix·our·bundled·exports·into·the·`_`·object·and·export | 5 | //·In·this·module,·we·mix·our·bundled·exports·into·the·`_`·object·and·export |
6 | //·the·result.·This·is·analogous·to·setting·`module.exports·=·_`·in·CommonJS. | 6 | //·the·result.·This·is·analogous·to·setting·`module.exports·=·_`·in·CommonJS. |
7 | //·Hence,·this·module·is·also·the·entry·point·of·our·UMD·bundle·and·the·package | 7 | //·Hence,·this·module·is·also·the·entry·point·of·our·UMD·bundle·and·the·package |
8 | //·entry·point·for·CommonJS·and·AMD·users.·In·other·words,·this·is·(the·source | 8 | //·entry·point·for·CommonJS·and·AMD·users.·In·other·words,·this·is·(the·source |
Offset 1, 54 lines modified | Offset 1, 54 lines modified | ||
1 | Object.defineProperty(exports,·'__esModule',·{ | 1 | Object.defineProperty(exports,·'__esModule',·{ |
2 | ····value:·true | 2 | ····value:·true |
3 | }); | 3 | }); |
4 | var·_setup·=·require('./index26.js'); | 4 | var·_setup·=·require('./index26.js'); |
5 | var·restArguments·=·require('./index134.js'); | 5 | var·restArguments·=·require('./index134.js'); |
6 | var·isObject·=·require('./index9 | 6 | var·isObject·=·require('./index94.js'); |
7 | var·isNull·=·require('./index93.js'); | 7 | var·isNull·=·require('./index93.js'); |
8 | var·isUndefined·=·require('./index101.js'); | 8 | var·isUndefined·=·require('./index101.js'); |
9 | var·isBoolean·=·require('./index81.js'); | 9 | var·isBoolean·=·require('./index81.js'); |
10 | var·isElement·=·require('./index84.js'); | 10 | var·isElement·=·require('./index84.js'); |
11 | var·isString·=·require('./index98.js'); | 11 | var·isString·=·require('./index98.js'); |
12 | var·isNumber·=·require('./index9 | 12 | var·isNumber·=·require('./index95.js'); |
13 | var·isDate·=·require('./index83.js'); | 13 | var·isDate·=·require('./index83.js'); |
14 | var·isRegExp·=·require('./index96.js'); | 14 | var·isRegExp·=·require('./index96.js'); |
15 | var·isError·=·require('./index87.js'); | 15 | var·isError·=·require('./index87.js'); |
16 | var·isSymbol·=·require('./index99.js'); | 16 | var·isSymbol·=·require('./index99.js'); |
17 | var·isArrayBuffer·=·require('./index80.js'); | 17 | var·isArrayBuffer·=·require('./index80.js'); |
18 | var·isDataView·=·require('./index82.js'); | 18 | var·isDataView·=·require('./index82.js'); |
19 | var·isArray·=·require('./index79.js'); | 19 | var·isArray·=·require('./index79.js'); |
20 | var·isFunction·=·require('./index89.js'); | 20 | var·isFunction·=·require('./index89.js'); |
21 | var·isArguments·=·require('./index7 | 21 | var·isArguments·=·require('./index77.js'); |
22 | var·isFinite·=·require('./index88.js'); | 22 | var·isFinite·=·require('./index88.js'); |
23 | var·isNaN·=·require('./index92.js'); | 23 | var·isNaN·=·require('./index92.js'); |
24 | var·isTypedArray·=·require('./index100.js'); | 24 | var·isTypedArray·=·require('./index100.js'); |
25 | var·isEmpty·=·require('./index85.js'); | 25 | var·isEmpty·=·require('./index85.js'); |
26 | var·isMatch·=·require('./index91.js'); | 26 | var·isMatch·=·require('./index91.js'); |
27 | var·isEqual·=·require('./index86.js'); | 27 | var·isEqual·=·require('./index86.js'); |
28 | var·isMap·=·require('./index90.js'); | 28 | var·isMap·=·require('./index90.js'); |
29 | var·isWeakMap·=·require('./index102.js'); | 29 | var·isWeakMap·=·require('./index102.js'); |
30 | var·isSet·=·require('./index97.js'); | 30 | var·isSet·=·require('./index97.js'); |
31 | var·isWeakSet·=·require('./index10 | 31 | var·isWeakSet·=·require('./index104.js'); |
32 | var·keys·=·require('./index105.js'); | 32 | var·keys·=·require('./index105.js'); |
33 | var·allKeys·=·require('./index34.js'); | 33 | var·allKeys·=·require('./index34.js'); |
34 | var·values·=·require('./index156.js'); | 34 | var·values·=·require('./index156.js'); |
35 | var·pairs·=·require('./index121.js'); | 35 | var·pairs·=·require('./index121.js'); |
36 | var·invert·=·require('./index76.js'); | 36 | var·invert·=·require('./index76.js'); |
37 | var·functions·=·require('./index65.js'); | 37 | var·functions·=·require('./index65.js'); |
38 | var·extend·=·require('./index55.js'); | 38 | var·extend·=·require('./index55.js'); |
39 | var·extendOwn·=·require('./index56.js'); | 39 | var·extendOwn·=·require('./index56.js'); |
40 | var·defaults·=·require('./index48.js'); | 40 | var·defaults·=·require('./index48.js'); |
41 | var·create·=·require('./index46.js'); | 41 | var·create·=·require('./index46.js'); |
42 | var·clone·=·require('./index40.js'); | 42 | var·clone·=·require('./index40.js'); |
43 | var·tap·=·require('./index142.js'); | 43 | var·tap·=·require('./index142.js'); |
44 | var·get·=·require('./index66.js'); | 44 | var·get·=·require('./index66.js'); |
45 | var·has·=·require('./index68.js'); | 45 | var·has·=·require('./index68.js'); |
46 | var·mapObject·=·require('./index10 | 46 | var·mapObject·=·require('./index108.js'); |
47 | var·identity·=·require('./index69.js'); | 47 | var·identity·=·require('./index69.js'); |
48 | var·constant·=·require('./index43.js'); | 48 | var·constant·=·require('./index43.js'); |
49 | var·noop·=·require('./index116.js'); | 49 | var·noop·=·require('./index116.js'); |
50 | var·toPath·=·require('./index148.js'); | 50 | var·toPath·=·require('./index148.js'); |
51 | var·property·=·require('./index126.js'); | 51 | var·property·=·require('./index126.js'); |
52 | var·propertyOf·=·require('./index127.js'); | 52 | var·propertyOf·=·require('./index127.js'); |
53 | var·matcher·=·require('./index110.js'); | 53 | var·matcher·=·require('./index110.js'); |
Offset 57, 80 lines modified | Offset 57, 80 lines modified | ||
57 | var·now·=·require('./index117.js'); | 57 | var·now·=·require('./index117.js'); |
58 | var·escape·=·require('./index53.js'); | 58 | var·escape·=·require('./index53.js'); |
59 | var·unescape·=·require('./index151.js'); | 59 | var·unescape·=·require('./index151.js'); |
60 | var·templateSettings·=·require('./index144.js'); | 60 | var·templateSettings·=·require('./index144.js'); |
61 | var·template·=·require('./index143.js'); | 61 | var·template·=·require('./index143.js'); |
62 | var·result·=·require('./index135.js'); | 62 | var·result·=·require('./index135.js'); |
63 | var·uniqueId·=·require('./index154.js'); | 63 | var·uniqueId·=·require('./index154.js'); |
64 | var·chain·=·require('./index3 | 64 | var·chain·=·require('./index37.js'); |
65 | var·iteratee·=·require('./index10 | 65 | var·iteratee·=·require('./index103.js'); |
66 | var·partial·=·require('./index122.js'); | 66 | var·partial·=·require('./index122.js'); |
67 | var·bind·=·require('./index36.js'); | 67 | var·bind·=·require('./index36.js'); |
68 | var·bindAll·=·require('./index3 | 68 | var·bindAll·=·require('./index38.js'); |
69 | var·memoize·=·require('./index112.js'); | 69 | var·memoize·=·require('./index112.js'); |
70 | var·delay·=·require('./index5 | 70 | var·delay·=·require('./index52.js'); |
71 | var·defer·=·require('./index49.js'); | 71 | var·defer·=·require('./index49.js'); |
72 | var·throttle·=·require('./index145.js'); | 72 | var·throttle·=·require('./index145.js'); |
73 | var·debounce·=·require('./index47.js'); | 73 | var·debounce·=·require('./index47.js'); |
74 | var·wrap·=·require('./index159.js'); | 74 | var·wrap·=·require('./index159.js'); |
75 | var·negate·=·require('./index115.js'); | 75 | var·negate·=·require('./index115.js'); |
76 | var·compose·=·require('./index4 | 76 | var·compose·=·require('./index41.js'); |
77 | var·after·=·require('./index33.js'); | 77 | var·after·=·require('./index33.js'); |
78 | var·before·=·require('./index35.js'); | 78 | var·before·=·require('./index35.js'); |
79 | var·once·=·require('./index120.js'); | 79 | var·once·=·require('./index120.js'); |
80 | var·findKey·=·require('./index60.js'); | 80 | var·findKey·=·require('./index60.js'); |
81 | var·findIndex·=·require('./index59.js'); | 81 | var·findIndex·=·require('./index59.js'); |
82 | var·findLastIndex·=·require('./index61.js'); | 82 | var·findLastIndex·=·require('./index61.js'); |
83 | var·sortedIndex·=·require('./index141.js'); | 83 | var·sortedIndex·=·require('./index141.js'); |
84 | var·indexOf·=·require('./index7 | 84 | var·indexOf·=·require('./index74.js'); |
85 | var·lastIndexOf·=·require('./index10 | 85 | var·lastIndexOf·=·require('./index109.js'); |
86 | var·find·=·require('./index58.js'); | 86 | var·find·=·require('./index58.js'); |
87 | var·findWhere·=·require('./index62.js'); | 87 | var·findWhere·=·require('./index62.js'); |
88 | var·each·=·require('./index5 | 88 | var·each·=·require('./index51.js'); |
89 | var·map·=·require('./index10 | 89 | var·map·=·require('./index107.js'); |
90 | var·reduce·=·require('./index1 | 90 | var·reduce·=·require('./index130.js'); |
91 | var·reduceRight·=·require('./index131.js'); | 91 | var·reduceRight·=·require('./index131.js'); |
92 | var·filter·=·require('./index57.js'); | 92 | var·filter·=·require('./index57.js'); |
93 | var·reject·=·require('./index132.js'); | 93 | var·reject·=·require('./index132.js'); |
94 | var·every·=·require('./index54.js'); | 94 | var·every·=·require('./index54.js'); |
95 | var·some·=·require('./index139.js'); | 95 | var·some·=·require('./index139.js'); |
96 | var·contains·=·require('./index44.js'); | 96 | var·contains·=·require('./index44.js'); |
97 | var·invoke·=·require('./index7 | 97 | var·invoke·=·require('./index78.js'); |
98 | var·pluck·=·require('./index125.js'); | 98 | var·pluck·=·require('./index125.js'); |
99 | var·where·=·require('./index157.js'); | 99 | var·where·=·require('./index157.js'); |
100 | var·max·=·require('./index111.js'); | 100 | var·max·=·require('./index111.js'); |
101 | var·min·=·require('./index11 | 101 | var·min·=·require('./index113.js'); |
102 | var·shuffle·=·require('./index137.js'); | 102 | var·shuffle·=·require('./index137.js'); |
103 | var·sample·=·require('./index136.js'); | 103 | var·sample·=·require('./index136.js'); |
104 | var·sortBy·=·require('./index140.js'); | 104 | var·sortBy·=·require('./index140.js'); |
105 | var·groupBy·=·require('./index67.js'); | 105 | var·groupBy·=·require('./index67.js'); |
106 | var·indexBy·=·require('./index72.js'); | 106 | var·indexBy·=·require('./index72.js'); |
107 | var·countBy·=·require('./index45.js'); | 107 | var·countBy·=·require('./index45.js'); |
108 | var·partition·=·require('./index123.js'); | 108 | var·partition·=·require('./index123.js'); |
109 | var·toArray·=·require('./index147.js'); | 109 | var·toArray·=·require('./index147.js'); |
110 | var·size·=·require('./index138.js'); | 110 | var·size·=·require('./index138.js'); |
111 | var·pick·=·require('./index124.js'); | 111 | var·pick·=·require('./index124.js'); |
112 | var·omit·=·require('./index119.js'); | 112 | var·omit·=·require('./index119.js'); |
113 | var·first·=·require('./index63.js'); | 113 | var·first·=·require('./index63.js'); |
114 | var·initial·=·require('./index7 | 114 | var·initial·=·require('./index73.js'); |
115 | var·last·=·require('./index106.js'); | 115 | var·last·=·require('./index106.js'); |
116 | var·rest·=·require('./index133.js'); | 116 | var·rest·=·require('./index133.js'); |
117 | var·compact·=·require('./index4 | 117 | var·compact·=·require('./index42.js'); |
118 | var·flatten·=·require('./index64.js'); | 118 | var·flatten·=·require('./index64.js'); |
119 | var·without·=·require('./index158.js'); | 119 | var·without·=·require('./index158.js'); |
120 | var·uniq·=·require('./index153.js'); | 120 | var·uniq·=·require('./index153.js'); |
121 | var·union·=·require('./index152.js'); | 121 | var·union·=·require('./index152.js'); |
122 | var·intersection·=·require('./index75.js'); | 122 | var·intersection·=·require('./index75.js'); |
123 | var·difference·=·require('./index5 | 123 | var·difference·=·require('./index50.js'); |
124 | var·unzip·=·require('./index155.js'); | 124 | var·unzip·=·require('./index155.js'); |
125 | var·zip·=·require('./index160.js'); | 125 | var·zip·=·require('./index160.js'); |
126 | var·object·=·require('./index118.js'); | 126 | var·object·=·require('./index118.js'); |
127 | var·range·=·require('./index1 | 127 | var·range·=·require('./index129.js'); |
128 | var·chunk·=·require('./index39.js'); | 128 | var·chunk·=·require('./index39.js'); |
Max diff block lines reached; 119/6096 bytes (1.95%) of diff not shown. |
Offset 1, 11 lines modified | Offset 1, 10 lines modified | ||
1 | var·sortedIndex·=·require('./index141.js'); | ||
2 | var· | 1 | var·_setup·=·require('./index26.js'); |
3 | var·_createIndexFinder·=·require('./index8.js'); | ||
4 | //·Return·the·position·of·the·first·occurrence·of·an·item·in·an·array, | ||
5 | //·or·-1·if·the·item·is·not·included·in·the·array. | ||
6 | //·If·the·array·is·large·and·already·in·sort·order,·pass·`true` | ||
7 | //·for·**isSorted**·to·use·binary·search. | ||
8 | 2 | //·Returns·everything·but·the·last·entry·of·the·array.·Especially·useful·on | |
3 | //·the·arguments·object.·Passing·**n**·will·return·all·the·values·in | ||
4 | //·the·array,·excluding·the·last·N. | ||
5 | function·initial(array,·n,·guard)·{ | ||
6 | ····return·_setup.slice.call(array,·0,·Math.max(0,·array.length·-·(n·==·null·||·guard·?·1·:·n))); | ||
7 | } | ||
9 | module.exports·=·in | 8 | module.exports·=·initial; |
Offset 1, 10 lines modified | Offset 1, 11 lines modified | ||
1 | var·sortedIndex·=·require('./index141.js'); | ||
1 | var· | 2 | var·findIndex·=·require('./index59.js'); |
3 | var·_createIndexFinder·=·require('./index8.js'); | ||
4 | //·Return·the·position·of·the·first·occurrence·of·an·item·in·an·array, | ||
5 | //·or·-1·if·the·item·is·not·included·in·the·array. | ||
6 | //·If·the·array·is·large·and·already·in·sort·order,·pass·`true` | ||
7 | //·for·**isSorted**·to·use·binary·search. | ||
8 | var·indexOf·=·_createIndexFinder(1,·findIndex,·sortedIndex); | ||
2 | //·Returns·everything·but·the·last·entry·of·the·array.·Especially·useful·on | ||
3 | //·the·arguments·object.·Passing·**n**·will·return·all·the·values·in | ||
4 | //·the·array,·excluding·the·last·N. | ||
5 | function·initial(array,·n,·guard)·{ | ||
6 | ····return·_setup.slice.call(array,·0,·Math.max(0,·array.length·-·(n·==·null·||·guard·?·1·:·n))); | ||
7 | } | ||
8 | module.exports·=·in | 9 | module.exports·=·indexOf; |
Offset 1, 30 lines modified | Offset 1, 18 lines modified | ||
1 | var·restArguments·=·require('./index134.js'); | ||
2 | var· | 1 | var·_tagTester·=·require('./index29.js'); |
3 | var· | 2 | var·_has·=·require('./index19.js'); |
4 | var·_deepGet·=·require('./index12.js'); | ||
5 | var·_toPath·=·require('./index31.js'); | ||
6 | //·Invoke·a·method·(with·arguments)·on·every·item·in·a·collection. | ||
7 | var·invoke·=·restArguments(function(obj,·path,·args)·{ | ||
8 | ····var·contextPath,·func; | ||
9 | ····if·(isFunction(path))·{ | ||
10 | ········func·=·path; | ||
11 | ····}·else·{ | ||
12 | ········path·=·_toPath(path); | ||
13 | ········contextPath·=·path.slice(0,·-1); | ||
14 | · | 3 | var·isArguments·=·_tagTester('Arguments'); |
4 | //·Define·a·fallback·version·of·the·method·in·browsers·(ahem,·IE·<·9),·where | ||
5 | //·there·isn't·any·inspectable·"Arguments"·type. | ||
6 | (function()·{ | ||
7 | ····if·(!isArguments(arguments))·{ | ||
8 | ········isArguments·=·function(obj)·{ | ||
9 | ············return·_has(obj,·'callee'); | ||
10 | ········}; | ||
15 | ····} | 11 | ····} |
16 | ····return·map(obj,·function(context)·{ | ||
17 | ········var·method·=·func; | ||
18 | ········if·(!method)·{ | ||
19 | ············if·(contextPath·&&·contextPath.length)·{ | ||
20 | ················context·=·_deepGet(context,·contextPath); | ||
21 | ············} | ||
22 | ············if·(context·==·null)·return·void·0; | ||
23 | ············method·=·context[path]; | ||
24 | ········} | ||
25 | ········return·method·==·null·?·method·:·method.apply(context,·args); | ||
26 | ····}); | ||
27 | }); | 12 | }()); |
13 | var·isArguments$1·=·isArguments; | ||
28 | module.exports·=·in | 14 | module.exports·=·isArguments$1; |
Offset 1, 18 lines modified | Offset 1, 30 lines modified | ||
1 | var· | 1 | var·restArguments·=·require('./index134.js'); |
2 | var·isFunction·=·require('./index89.js'); | ||
2 | var· | 3 | var·map·=·require('./index107.js'); |
4 | var·_deepGet·=·require('./index12.js'); | ||
5 | var·_toPath·=·require('./index31.js'); | ||
3 | var·isArguments·=·_tagTester('Arguments'); | ||
4 | //·Define·a·fallback·version·of·the·method·in·browsers·(ahem,·IE·<·9),·where | ||
5 | //·there·isn't·any·inspectable·"Arguments"·type. | ||
6 | (function()·{ | ||
7 | ····if·(!isArguments(arguments))·{ | ||
8 | ········isArguments·=·function(obj)·{ | ||
9 | ············return·_has(obj,·'callee'); | ||
10 | ········ | 6 | //·Invoke·a·method·(with·arguments)·on·every·item·in·a·collection. |
7 | var·invoke·=·restArguments(function(obj,·path,·args)·{ | ||
8 | ····var·contextPath,·func; | ||
9 | ····if·(isFunction(path))·{ | ||
10 | ········func·=·path; | ||
11 | ····}·else·{ | ||
12 | ········path·=·_toPath(path); | ||
13 | ········contextPath·=·path.slice(0,·-1); | ||
14 | ········path·=·path[path.length·-·1]; | ||
11 | ····} | 15 | ····} |
16 | ····return·map(obj,·function(context)·{ | ||
17 | ········var·method·=·func; | ||
18 | ········if·(!method)·{ | ||
19 | ············if·(contextPath·&&·contextPath.length)·{ | ||
20 | ················context·=·_deepGet(context,·contextPath); | ||
21 | ············} | ||
22 | ············if·(context·==·null)·return·void·0; | ||
23 | ············method·=·context[path]; | ||
24 | ········} | ||
25 | ········return·method·==·null·?·method·:·method.apply(context,·args); | ||
26 | ····}); | ||
12 | } | 27 | }); |
13 | var·isArguments$1·=·isArguments; | ||
14 | module.exports·=·i | 28 | module.exports·=·invoke; |
Offset 1, 11 lines modified | Offset 1, 11 lines modified | ||
1 | var·_getLength·=·require('./index17.js'); | 1 | var·_getLength·=·require('./index17.js'); |
2 | var·isArray·=·require('./index79.js'); | 2 | var·isArray·=·require('./index79.js'); |
3 | var·isString·=·require('./index98.js'); | 3 | var·isString·=·require('./index98.js'); |
4 | var·isArguments·=·require('./index7 | 4 | var·isArguments·=·require('./index77.js'); |
5 | var·keys·=·require('./index105.js'); | 5 | var·keys·=·require('./index105.js'); |
6 | //·Is·a·given·array,·string,·or·object·empty? | 6 | //·Is·a·given·array,·string,·or·object·empty? |
7 | //·An·"empty"·object·has·no·enumerable·own-properties. | 7 | //·An·"empty"·object·has·no·enumerable·own-properties. |
8 | function·isEmpty(obj)·{ | 8 | function·isEmpty(obj)·{ |
9 | ····if·(obj·==·null)·return·true; | 9 | ····if·(obj·==·null)·return·true; |
10 | ····//·Skip·the·more·expensive·`toString`-based·type·checks·if·`obj`·has·no | 10 | ····//·Skip·the·more·expensive·`toString`-based·type·checks·if·`obj`·has·no |
Offset 1, 8 lines modified | Offset 1, 8 lines modified | ||
1 | var·_cb·=·require('./index | 1 | var·_cb·=·require('./index5.js'); |
2 | var·_getLength·=·require('./index17.js'); | 2 | var·_getLength·=·require('./index17.js'); |
3 | //·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`. | 3 | //·Internal·function·to·generate·`_.findIndex`·and·`_.findLastIndex`. |
4 | function·createPredicateIndexFinder(dir)·{ | 4 | function·createPredicateIndexFinder(dir)·{ |
5 | ····return·function(array,·predicate,·context)·{ | 5 | ····return·function(array,·predicate,·context)·{ |
6 | ········predicate·=·_cb(predicate,·context); | 6 | ········predicate·=·_cb(predicate,·context); |
7 | ········var·length·=·_getLength(array); | 7 | ········var·length·=·_getLength(array); |
Offset 1, 9 lines modified | Offset 1, 9 lines modified | ||
1 | var·_setup·=·require('./index26.js'); | 1 | var·_setup·=·require('./index26.js'); |
2 | var·isNumber·=·require('./index9 | 2 | var·isNumber·=·require('./index95.js'); |
3 | //·Is·the·given·value·`NaN`? | 3 | //·Is·the·given·value·`NaN`? |
4 | function·isNaN(obj)·{ | 4 | function·isNaN(obj)·{ |
5 | ····return·isNumber(obj)·&&·_setup._isNaN(obj); | 5 | ····return·isNumber(obj)·&&·_setup._isNaN(obj); |
6 | } | 6 | } |
7 | module.exports·=·isNaN; | 7 | module.exports·=·isNaN; |
Offset 1, 5 lines modified | Offset 1, 7 lines modified | ||
1 | 1 | //·Is·a·given·variable·an·object? | |
2 | function·isObject(obj)·{ | ||
3 | ····var·type·=·typeof·obj; | ||
4 | ····return·type·===·'function'·||·(type·===·'object'·&&·!!obj); | ||
5 | } | ||
2 | var·isNumber·=·_tagTester('Number'); | ||
3 | module.exports·=·is | 6 | module.exports·=·isObject; |
Offset 1, 7 lines modified | Offset 1, 5 lines modified | ||
1 | var·_tagTester·=·require('./index29.js'); | ||
1 | //·Is·a·given·variable·an·object? | ||
2 | function·isObject(obj)·{ | ||
3 | ····var·type·=·typeof·obj; | ||
4 | ····return·type·===·'function'·||·(type·===·'object'·&&·!!obj); | ||
5 | } | ||
2 | var·isNumber·=·_tagTester('Number'); | ||
6 | module.exports·=·is | 3 | module.exports·=·isNumber; |