Immutable.js

객체의 λΆˆλ³€μ…©μ˜ μœ μ§€ν•˜λ©΄μ„œ 데이터λ₯Ό μ‰½κ²Œ 핸듀링 κ°€λŠ₯ν•˜κ²Œλ” λ„μ™€μ£ΌλŠ” λΌμ΄λΈŒλŸ¬λ¦¬μ΄λ‹€.

λŒ€λΆ€λΆ„μ˜ μ»¬λ ‰μ…˜μ„ 지원 ν•˜λ©° μ‚¬μš©λ²• λ˜ν•œ 쉽닀.

var fromJS = Immutable.fromJS;

var data = fromJS({
  a: 1,
  b: 2,
  c: {
    d: 3,
    e: 4,
    f: 5
  }
})
data.toJS(); // { a:1, b:2, c: { d: 3, e: 4 } }