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

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
主站蜘蛛池模板: 枣庄市| 宜丰县| 南京市| 滨海县| 灵石县| 仁布县| 炉霍县| 神农架林区| 辉南县| 红桥区| 高雄市| 金堂县| 滨海县| 临潭县| 光泽县| 疏勒县| 湖北省| 朝阳区| 博乐市| 通海县| 浦江县| 都江堰市| 清徐县| 宜城市| 称多县| 泗洪县| 剑阁县| 肃北| 万州区| 广宗县| 黄山市| 茌平县| 荥经县| 永新县| 襄城县| 增城市| 昭平县| 巴青县| 宝鸡市| 资源县| 桃源县|