mirror of
https://github.com/oceanprotocol/community-numbers.git
synced 2024-12-22 17:23:31 +01:00
faster github stars count
This commit is contained in:
parent
87971dff2c
commit
abc037903c
@ -25,16 +25,7 @@ export default async function fetchGitHubRepos() {
|
||||
}
|
||||
|
||||
const json = await response.json()
|
||||
|
||||
const numbers = []
|
||||
|
||||
json.map((item) => {
|
||||
if (item.stargazers_count) {
|
||||
return numbers.push(item.stargazers_count)
|
||||
}
|
||||
return null
|
||||
})
|
||||
|
||||
const numbers = json.map((item) => item.stargazers_count)
|
||||
const stars = arrSum(numbers)
|
||||
const repositories = json.length
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user