-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
53 lines (51 loc) · 1.12 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const _ = require('lodash')
const partners = [
{
type: 'AWS',
alt: 'Amazon Web Services',
link: '',
src: '/assets/images/amazon-webservices-logo.svg',
enabled: true,
},
{
type: 'AZURE',
alt: 'Microsoft Azure',
link: '',
src: '/assets/images/microsoft-azure-logo.svg',
enabled: true,
},
{
type: 'GCE',
alt: 'Google Cloud Platform',
link: '',
src: '/assets/images/google-cloud-logo.svg',
classes: 'gce-image',
enabled: true,
},
{
type: 'ALICLOUD',
alt: 'Alibaba Cloud',
link: '',
src: '/assets/images/alibaba-partner-logo.svg',
// TODO: flag
enabled: true,
},
{
type: 'TENCENT',
alt: 'Tencent Cloud',
link: '',
src: '/assets/images/tencent-partner-logo.svg',
enabled: true,
},
{
type: 'IBM Cloud',
alt: 'IBM Cloud',
link: '',
src: '/assets/images/ibm-partner-logo.svg',
enabled: false,
showComingSoon: false,
},
];
const result = partners.filter((partner) => partner.showComingSoon !== true)
const comingSoonParters = _.filter(partners, {showComingSoon: true });
console.log(comingSoonParters)