Most active GitHub users in Worldwide https://commits.top/worldwide.html
42/256. 07/16/2020
https://github.com/stefanprodan
https://github.com/driesvints
https://github.com/1995parham
https://github.com/antfu
Most active GitHub users in Worldwide https://commits.top/worldwide.html
42/256. 07/16/2020
https://github.com/stefanprodan
https://github.com/driesvints
https://github.com/1995parham
https://github.com/antfu
const originalArray = [1, 2, 3, 4, 1, 2, 3, 4];
const uniqueArray = new Set(originalArray);
console.log(uniqueArray);
const originalArray = [1, 2, 3, 4, 1, 2, 3, 4]
const num = 1; | |
const ret = ( '000' + num ).slice( -3 ); | |
console.log(ret); |
const fibonacci = n =>
Array.from({ length: n }).reduce(
(acc, val, i) => acc.concat(i > 1 ? acc[i - 1] + acc[i - 2] : i),
[]
);
fibonacci(5);
def factorial(n):
if n > 1:
return n * factorial(n-1)
else:
return 1
Date.getTime() Get the time in milliseconds elapsed since .
Date.getFullYear() Get the four-digit year ().
Date.getMonth() Get the Date object's month as a zero-indexed number ().
Date.getDate()
function solution(A) {
let result = 0;
for (let element of A) {
result ^= element
}
return result
}
$ /usr/local/bin/node -v
v13.7.0
$ sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}
$ /usr/local/bin/node -v
zsh: no such file or directory: /usr/local/bin/node