- Mastering Immutable.js
- Adam Boduch
- 71字
- 2021-07-08 10:30:08
Using the of() method
Collection types in Immutable.js have a static of() method. This method is an alternative to using the collection constructor. The one downside to using the constructor approach is that you have to pass in a JavaScript literal. You have to build and allocate memory for a structure that you're not actually using.
The of() method uses the arguments that are passed to it as the collection items.
推薦閱讀
- Visual Basic .NET程序設(shè)計(jì)(第3版)
- GraphQL學(xué)習(xí)指南
- Machine Learning with R Cookbook(Second Edition)
- Reactive Programming with Swift
- Instant Typeahead.js
- 學(xué)Python也可以這么有趣
- Mastering Apache Maven 3
- The DevOps 2.5 Toolkit
- Java零基礎(chǔ)實(shí)戰(zhàn)
- Hands-On Full Stack Development with Spring Boot 2.0 and React
- 移動(dòng)增值應(yīng)用開發(fā)技術(shù)導(dǎo)論
- Advanced UFT 12 for Test Engineers Cookbook
- Go語言從入門到精通
- Scratch從入門到精通
- Java Web開發(fā)教程:基于Struts2+Hibernate+Spring