- Mastering Immutable.js
- Adam Boduch
- 69字
- 2021-07-08 10:30:07
Stacks
A stack is like a list because it's an indexed collection. The main difference with stacks is that they're really good at adding and removing values from the front of the collection. If you're implementing something that's first-in, first-out (FIFO), stacks are a good bet. Otherwise, stay away from stacks:
import { Stack } from 'immutable';
const myStack = Stack();
console.log('Stack', myStack instanceof Stack);
// -> Stack true
推薦閱讀
- AngularJS入門與進階
- WebAssembly實戰
- FreeSWITCH 1.6 Cookbook
- Building Mapping Applications with QGIS
- Unreal Engine 4 Shaders and Effects Cookbook
- Java系統化項目開發教程
- 蘋果的產品設計之道:創建優秀產品、服務和用戶體驗的七個原則
- Python從入門到精通
- Creating Data Stories with Tableau Public
- Building Serverless Architectures
- Java并發編程之美
- 單片機原理及應用技術
- UML軟件建模
- MongoDB Administrator’s Guide
- 算法超簡單:趣味游戲帶你輕松入門與實踐