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

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
主站蜘蛛池模板: 从江县| 焦作市| 珲春市| 岑巩县| 高要市| 涿鹿县| 平泉县| 南华县| 菏泽市| 鸡泽县| 名山县| 宝山区| 横山县| 闵行区| 华池县| 万载县| 镇远县| 特克斯县| 香格里拉县| 平江县| 随州市| 图片| 芦溪县| 阜新| 玉环县| 库尔勒市| 滦南县| 榆树市| 湖州市| 慈利县| 偃师市| 万安县| 安远县| 兴化市| 咸宁市| 娱乐| 德格县| 合水县| 广宁县| 新乡县| 东台市|