4 months ago

Use slice on javascript object to loop for all elements except first two?

Posted 4 months ago by Gabotronix

Hello everybody, I have an object of objects and I'd like to use a v-for loop to llop through all the objects except the first two ones, sadly I can't use slice sice it's only for arrays, is it possible to remove the first wo elements of an object using javascript without creating a new object

My object is something like:

    First: { },
    Second: { },
    Third: { }

Please sign in or create an account to participate in this conversation.