Skip to content

Commit cb161ac

Browse files
author
Travis CI
committed
Deploy 611a3b3 to NPM branch
1 parent 98f4cc1 commit cb161ac

File tree

4 files changed

+35
-27
lines changed

4 files changed

+35
-27
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ Any collection can be converted to a lazy Seq with `Seq()`.
556556

557557
<!-- runkit:activate -->
558558
```js
559-
const { Map } = require('immutable')
560-
const map = Map({ a: 1, b: 2, c: 3 }
559+
const { Map, Seq } = require('immutable')
560+
const map = Map({ a: 1, b: 2, c: 3 })
561561
const lazySeq = Seq(map)
562562
```
563563

dist/immutable.es.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,11 @@ function mergeIntoKeyedWith(collection, collections, merger) {
21082108
if (iters.length === 0) {
21092109
return collection;
21102110
}
2111-
if (collection.size === 0 && !collection.__ownerID && iters.length === 1) {
2111+
if (
2112+
collection.toSeq().size === 0 &&
2113+
!collection.__ownerID &&
2114+
iters.length === 1
2115+
) {
21122116
return collection.constructor(iters[0]);
21132117
}
21142118
return collection.withMutations(function (collection) {

dist/immutable.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,11 @@ function mergeIntoKeyedWith(collection, collections, merger) {
21142114
if (iters.length === 0) {
21152115
return collection;
21162116
}
2117-
if (collection.size === 0 && !collection.__ownerID && iters.length === 1) {
2117+
if (
2118+
collection.toSeq().size === 0 &&
2119+
!collection.__ownerID &&
2120+
iters.length === 1
2121+
) {
21182122
return collection.constructor(iters[0]);
21192123
}
21202124
return collection.withMutations(function (collection) {

0 commit comments

Comments
 (0)