官术网_书友最值得收藏!

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
主站蜘蛛池模板: 茂名市| 泰来县| 洛扎县| 和平区| 西林县| 习水县| 随州市| 介休市| 桃园市| 綦江县| 石河子市| 崇左市| 左云县| 瑞金市| 北宁市| 滁州市| 铜鼓县| 孝义市| 大田县| 辽宁省| 丹寨县| 增城市| 攀枝花市| 五峰| 饶阳县| 虎林市| 巴林右旗| 揭东县| 西乡县| 安顺市| 鄂尔多斯市| 许昌市| 宁陵县| 肇源县| 云南省| 凤凰县| 巴林左旗| 乌兰县| 久治县| 宜都市| 固始县|