분류
Nodejs
immutable - 변경 불가능한 데이터 콜렉션.
본문
https://github.com/immutable-js/immutable-js
const { Map } = require('immutable'); const map1 = Map({ a: 1, b: 2, c: 3 }); const map2 = map1.set('b', 50); map1.get('b') + " vs. " + map2.get('b'); // 2 vs. 50