- Mastering Immutable.js
- Adam Boduch
- 179字
- 2021-07-08 10:30:03
A collections API
A collection in JavaScript refers to anything that can be iterated over, for example, when using a for..of loop. In practice, this means arrays and objects. Arrays and objects are collections of values; the only difference between them is how you look up values. An array is an indexed collection, because you use a numerical index to lookup a value. An object is a keyed collection, because you use a key string to lookup a value.
The issue with these primitive JavaScript collection types is that they can change; that is, they're not immutable. The collections exposed by Immutable.js feel a lot like native arrays and objects. In fact, you can take an array or an object and use it to construct an Immutable.js collection. You can also turn an Immutable.js collection into a JavaScript array or object.
This is the extent of the Immutable.js API. You use collection classes to hold your immutable data. To use this immutable data, you call methods on these collections, which is at the very heart of the Immutable.js API.
- Getting Started with ResearchKit
- 機器人Python青少年編程開發實例
- Wireshark Network Security
- Blockly創意趣味編程
- Mastering Python High Performance
- Java性能權威指南(第2版)
- 網店設計看這本就夠了
- Python漫游數學王國:高等數學、線性代數、數理統計及運籌學
- Mastering Web Application Development with AngularJS
- C++程序設計教程
- Oracle Database XE 11gR2 Jump Start Guide
- 虛擬現實建模與編程(SketchUp+OSG開發技術)
- ASP.NET jQuery Cookbook(Second Edition)
- Leaflet.js Essentials
- Building Microservices with .NET Core 2.0(Second Edition)