-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
76 lines (70 loc) · 1 KB
/
index.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import filter_singularity from './singularity_filter/index.js'
const x = [
{
name: 'Emmanuel',
title: 'Upcoming Cyber God',
},
{
name: 'Map',
title: 'The One Who Asks',
},
]
const y = [
{
name: 'Mystery Man',
title: 'That Which is Unique',
},
{
name: 'Map',
title: 'The One Who Asks',
},
]
const z = [
{
name: 'Alice',
title: 'The Test Subject',
},
{
name: 'Moe',
title: 'Mother of All Maids',
},
{
name: 'Van Diesel',
role: 'Hollywood Actor',
},
{
name: 'Bob',
title: 'The Accomplice',
role: 'Pair Tester',
position: 2,
sex: 'Male',
},
]
const a = [
{
name: 'Alice',
title: 'The Test Subject',
},
{
name: 'Yasuke',
title: 'First Black Samurai',
},
{
name: 'Jane',
title: 'The Test Subject',
behavior: 'Logical',
},
{
name: 'Bob',
title: 'The Accomplice',
role: 'Unknown',
position: 2,
sex: 'Male',
},
{
name: 'Van Diesel',
role: 'Hollywood Actor',
},
]
console.log(filter_singularity(x, y))
console.log(filter_singularity(z, a))