8000 V4-- OrderedMap.concat is not a function. · Issue #1418 · immutable-js/immutable-js · GitHub
[go: up one dir, main page]

Skip to content
V4-- OrderedMap.concat is not a function. #1418
Closed
@randallb

Description

@randallb

What happened

In V4 RC9, using an OrderedMap.concat fails. I'm looking into #1373 as a potential bad merge, where .concat was supposed to alias .merge but something didn't go as planned.

How to reproduce

Given a package.json:

{
  "name": "immmutable-bug-simple",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "immutable": "^4.0.0-rc.9"
  }
}

and an index.js of

const immutable = require('immutable');

const orderedMap = immutable.OrderedMap();
const orderedMap2 = immutable.OrderedMap();
orderedMap.concat(orderedMap2)

I get:

TypeError: orderedMap.concat is not a function
    at Object.<anonymous> (/Users/rb/code/experiment/immmutable-bug-simple/index.js:5:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0