Skip to content
This repository was archived by the owner on Jan 21, 2024. It is now read-only.

ofek-public/immutable-js-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Immutable.js Cheat Sheet

Map

    var map = Immutable.Map({ a: 1, b: 2, c: 3 });
    map.set('a', 10).get('a');							// 10
    map.merge({'a': 10, 'b': 20}); 						// { a: 10, b: 20, c: 3 }
    
    var map = Immutable.fromJS({ a: 1, b: { b1: 1, b2: 2 } });
    map.mergeDeep({ b: { b1: 10 } });                     // { a: 1, b: { b1: 10, b2: 2 } }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •