Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue nested loop

data: {
  sets: [[ 1, 2, 3, 4, 5 ], [6, 7, 8, 9, 10]]
},
methods: {
  even: function (numbers) {
    return numbers.filter(function (number) {
      return number % 2 === 0
    })
  }
}
Source by vuejs.org #
 
PREVIOUS NEXT
Tagged: #vue #nested #loop
ADD COMMENT
Topic
Name
4+1 =