js new array from new set
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) ;
return Array.from(new Set(this.posts.map(e => e.category)))
Also in JavaScript:
- add firebase javascript
- passing data variable using ajax
- make directive to return dropdown values angular
- download image in nodejs
- checkbox default value and checked value get in jquery
- how to use componentdidmount in functional component
- heroku get requests return html code in production
- javascript generate 3 numbers 1 - 49
- javascript yield
- jquery fade out
- getting whole json object
- js dom ready function
- javascript get scroll position
- react native slow performance after load iamges
- parallelogram intersection
- upload file from url javascript
- random numbers javascript
- node_modules/react-native-paper/lib/module/core/Provider.js
- disable js in chrome dev tools
- vue-sfc-rollup external dependency
- lodash merge
- créer composant react
- hidden jquery
- js set visibility