Answers for "object set js"

0

js new array from new set

return Array.from(new Set(this.posts.map(e => e.category)))
Posted by: Guest on August-02-2020
0

object set js

let nombres = [10, 45, 75, 10 ,24,45 ] ;
//let monSet = new Set(nombres) ;
let monSet = new Set() ;

monSet.add('100') ;
monSet.add('280') ; 
//monSet.delete('100');

console.log(monSet.size) ;
Posted by: Guest on March-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language