This is more of a constructive question, i am trying to slice one array, but store the stuff that i didnt slice in new array. The logic would be like ['a','b','c','d']
, and i would be left with ['a','b','c']
, but what happens to ['d']
? I would want to keep that value, as this will be for like payment icons, have a limit to show only 5, and have load more button