- Node >= 18
- Run
npm install
to install dependencies - use
node prueba.js
to run the code and print in the console the properties titles - use
npm run test
to run the tests
# Node template | |
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data |
{ | |
"env": { | |
"browser": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": ["airbnb"], | |
"globals": { | |
"document": false, | |
"escape": false, |
const testCases = [ | |
'123123123', | |
'abc123', | |
'aaabbbccc', | |
'12345678' | |
] | |
function isUnique(string = ''){ | |
return (new Set(string)).size === string.length |