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