Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitded9bc6

Browse files
committed
Bump to v4.17.20.
1 parent63150ef commitded9bc6

9 files changed

+381
-357
lines changed

‎README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lodash v4.17.19
1+
#lodash v4.17.20
22

33
[Site](https://lodash.com/) |
44
[Docs](https://lodash.com/docs) |
@@ -20,11 +20,11 @@ $ lodash core -o ./dist/lodash.core.js
2020

2121
##Download
2222

23-
*[Core build](https://raw.githubusercontent.com/lodash/lodash/4.17.19/dist/lodash.core.js) ([~4 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.17.19/dist/lodash.core.min.js))
24-
*[Full build](https://raw.githubusercontent.com/lodash/lodash/4.17.19/dist/lodash.js) ([~24 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.17.19/dist/lodash.min.js))
23+
*[Core build](https://raw.githubusercontent.com/lodash/lodash/4.17.20/dist/lodash.core.js) ([~4 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.17.20/dist/lodash.core.min.js))
24+
*[Full build](https://raw.githubusercontent.com/lodash/lodash/4.17.20/dist/lodash.js) ([~24 kB gzipped](https://raw.githubusercontent.com/lodash/lodash/4.17.20/dist/lodash.min.js))
2525
*[CDN copies](https://www.jsdelivr.com/projects/lodash)
2626

27-
Lodash is released under the[MIT license](https://raw.githubusercontent.com/lodash/lodash/4.17.19/LICENSE) & supports modern environments.<br>
27+
Lodash is released under the[MIT license](https://raw.githubusercontent.com/lodash/lodash/4.17.20/LICENSE) & supports modern environments.<br>
2828
Review the[build differences](https://github.com/lodash/lodash/wiki/build-differences) & pick one that’s right for you.
2929

3030
##Installation

‎dist/lodash.core.js

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
varundefined;
1414

1515
/** Used as the semantic version number. */
16-
varVERSION='4.17.16';
16+
varVERSION='4.17.20';
1717

1818
/** Error message constants. */
1919
varFUNC_ERROR_TEXT='Expected a function';
@@ -1183,6 +1183,12 @@
11831183
if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){
11841184
returnfalse;
11851185
}
1186+
// Check that cyclic values are equal.
1187+
vararrStacked=stack.get(array);
1188+
varothStacked=stack.get(other);
1189+
if(arrStacked&&othStacked){
1190+
returnarrStacked==other&&othStacked==array;
1191+
}
11861192
varindex=-1,
11871193
result=true,
11881194
seen=(bitmask&COMPARE_UNORDERED_FLAG) ?[] :undefined;
@@ -1293,6 +1299,12 @@
12931299
returnfalse;
12941300
}
12951301
}
1302+
// Check that cyclic values are equal.
1303+
varobjStacked=stack.get(object);
1304+
varothStacked=stack.get(other);
1305+
if(objStacked&&othStacked){
1306+
returnobjStacked==other&&othStacked==object;
1307+
}
12961308
varresult=true;
12971309

12981310
varskipCtor=isPartial;
@@ -1935,6 +1947,10 @@
19351947
* // The `_.property` iteratee shorthand.
19361948
* _.filter(users, 'active');
19371949
* // => objects for ['barney']
1950+
*
1951+
* // Combining several predicates using `_.overEvery` or `_.overSome`.
1952+
* _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));
1953+
* // => objects for ['fred', 'barney']
19381954
*/
19391955
functionfilter(collection,predicate){
19401956
returnbaseFilter(collection,baseIteratee(predicate));
@@ -2188,15 +2204,15 @@
21882204
* var users = [
21892205
* { 'user': 'fred', 'age': 48 },
21902206
* { 'user': 'barney', 'age': 36 },
2191-
* { 'user': 'fred', 'age':40 },
2207+
* { 'user': 'fred', 'age':30 },
21922208
* { 'user': 'barney', 'age': 34 }
21932209
* ];
21942210
*
21952211
* _.sortBy(users, [function(o) { return o.user; }]);
2196-
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred',40]]
2212+
* // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred',30]]
21972213
*
21982214
* _.sortBy(users, ['user', 'age']);
2199-
* // => objects for [['barney', 34], ['barney', 36], ['fred',40], ['fred', 48]]
2215+
* // => objects for [['barney', 34], ['barney', 36], ['fred',30], ['fred', 48]]
22002216
*/
22012217
functionsortBy(collection,iteratee){
22022218
varindex=0;
@@ -3503,6 +3519,9 @@
35033519
* values against any array or object value, respectively. See `_.isEqual`
35043520
* for a list of supported value comparisons.
35053521
*
3522+
* **Note:** Multiple values can be checked by combining several matchers
3523+
* using `_.overSome`
3524+
*
35063525
*@static
35073526
*@memberOf _
35083527
*@since 3.0.0
@@ -3518,6 +3537,10 @@
35183537
*
35193538
* _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
35203539
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
3540+
*
3541+
* // Checking for several possible values
3542+
* _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
3543+
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
35213544
*/
35223545
functionmatches(source){
35233546
returnbaseMatches(assign({},source));

‎dist/lodash.core.min.js

Lines changed: 25 additions & 24 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/lodash.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
var undefined;
1313

1414
/** Used as the semantic version number. */
15-
var VERSION = '4.17.19';
15+
var VERSION = '4.17.20';
1616

1717
/** Used as the size to enable large array optimizations. */
1818
var LARGE_ARRAY_SIZE = 200;
@@ -15588,7 +15588,7 @@
1558815588
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
1558915589
*
1559015590
* // Checking for several possible values
15591-
* _.filter(users, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
15591+
* _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
1559215592
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
1559315593
*/
1559415594
function matches(source) {
@@ -15625,7 +15625,7 @@
1562515625
* // => { 'a': 4, 'b': 5, 'c': 6 }
1562615626
*
1562715627
* // Checking for several possible values
15628-
* _.filter(users, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
15628+
* _.filter(objects, _.overSome([_.matchesProperty('a', 1), _.matchesProperty('a', 4)]));
1562915629
* // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
1563015630
*/
1563115631
function matchesProperty(path, srcValue) {

‎dist/lodash.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp