add day 1

This commit is contained in:
Zoe
2022-09-23 22:33:36 -05:00
commit 1c5d2a2e7e
322 changed files with 237131 additions and 0 deletions

21
day1/node_modules/nanoid/non-secure/index.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
let urlAlphabet =
'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
let customAlphabet = (alphabet, defaultSize = 21) => {
return (size = defaultSize) => {
let id = ''
let i = size
while (i--) {
id += alphabet[(Math.random() * alphabet.length) | 0]
}
return id
}
}
let nanoid = (size = 21) => {
let id = ''
let i = size
while (i--) {
id += urlAlphabet[(Math.random() * 64) | 0]
}
return id
}
export { nanoid, customAlphabet }