Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
ai
Commits
4cb159a1
Commit
4cb159a1
authored
Apr 07, 2022
by
Ahmad Nemati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
345b2b54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
uniq.js
uniq.js
+8
-1
No files found.
uniq.js
View file @
4cb159a1
...
...
@@ -7,6 +7,7 @@ async function run() {
let
configs
=
await
fs
.
readdirSync
(
'
uniq/
'
)
let
arr
=
[]
let
arrDate
=
[]
for
(
let
i
=
0
;
i
<
configs
.
length
;
i
++
)
{
if
(
!
configs
[
i
].
includes
(
'
.json
'
))
...
...
@@ -16,7 +17,9 @@ async function run() {
config
=
JSON
.
parse
(
config
)
for
(
let
j
=
0
;
j
<
config
.
length
;
j
++
)
{
let
dateString
=
config
[
i
].
dateString
.
split
(
'
_
'
)
for
(
let
z
=
0
;
z
<
dateString
.
length
-
1
;
z
++
)
arrDate
.
push
(
dateString
[
z
])
arr
.
push
(
config
[
j
])
}
...
...
@@ -27,10 +30,14 @@ async function run() {
}
// console.log(arr)
arr
=
_
.
uniqBy
(
arr
,
'
platform
'
);
arrDate
=
_
.
uniq
(
arrDate
);
// console.log(arrDate)
console
.
log
(
'
All Uniq Platform:
'
+
arr
.
length
)
console
.
log
(
'
All Uniq Date:
'
+
arrDate
.
length
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment