Uzyskaj zakres elementów na liście JavaScript React Native

var a = ['a','b','c','d','e','f','g'];
var sliced = a.slice(0, 3); //will contain ['a', 'b', 'c']
Fine Fox