I have a Map
like this:
const m = new Map();
m.set('key1', {})
.
m.set('keyN' {})
the Map
can have 1 or many items. Can I get the first item by index, without m.get('key1')
and without a iterator loop?
like: m.get()[0]
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…