Methuselah96 / immutable-js

Immutable persistent data collections for Javascript which increase efficiency and simplicity.
http://facebook.github.io/immutable-js/
MIT License
0 stars 2 forks source link

Empty record merge returns undefined #7

Open Methuselah96 opened 4 years ago

Methuselah96 commented 4 years ago

Migrated from don't! Originally created by @acrazing on Wed, 09 Sep 2020 07:34:10 GMT


For example:

import { Record } from 'immutable';

const emptyRecord = Record({})();

console.log(emptyRecord.merge({ id: 1 })); // -> undefined, expected result is emptyRecord

See CodeSandbox