-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
- Optimize
Course_work/js/search_engine.js
Lines 13 to 15 in d1f89db
const delay = ms => { return new Promise(r => setTimeout(() => r(), ms)); };
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));- Optimize
Course_work/js/search_engine.js
Lines 18 to 24 in d1f89db
const checkForEmptyString = (data) => { if (data.trim() === "") { return false; } else { return true; } };
const isEmpty = (s) => s.trim() === '';- Use
String.prototype.startsWithhttps://github.com/crazysparrow69/Course_work/blob/master/js/search_engine.js#L30 - Magic number
Course_work/js/search_engine.js
Line 44 in d1f89db
await delay(100).then(() => { - Use
===instead of==and 13 is a magic numberCourse_work/js/search_engine.js
Line 59 in d1f89db
if (event.which == 13 || event.KeyCode == 13) { - Add eslint and prettier
- Better create server-side endpoints and serve this collections as a result of API endpoints - https://github.com/crazysparrow69/Course_work/tree/master/js/data_base
Metadata
Metadata
Assignees
Labels
No labels