Click here to Skip to main content
15,313,299 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHTML Rotate results in messed up and unresponsive design. Pin
Resource Link26-Mar-21 7:19
MemberResource Link26-Mar-21 7:19 
QuestionRefresh token API development and documentation Pin
kyclk1125-Mar-21 19:15
Memberkyclk1125-Mar-21 19:15 
QuestionPHP7, how to create a json array of keyvalues from an object Pin
jkirkerx25-Mar-21 10:57
professionaljkirkerx25-Mar-21 10:57 
AnswerRe: PHP7, how to create a json array of keyvalues from an object Pin
jkirkerx26-Mar-21 11:18
professionaljkirkerx26-Mar-21 11:18 
QuestionHi, can someone help me with file-upload feature for my Angular app? Pin
kyclk1117-Mar-21 3:41
Memberkyclk1117-Mar-21 3:41 
AnswerRe: Hi, can someone help me with file-upload feature for my Angular app? Pin
jkirkerx25-Mar-21 11:02
professionaljkirkerx25-Mar-21 11:02 
QuestionReduce Javascript Pin
Member 1497619910-Mar-21 14:12
MemberMember 1497619910-Mar-21 14:12 
AnswerRe: Reduce Javascript Pin
Richard Deeming10-Mar-21 21:34
mveRichard Deeming10-Mar-21 21:34 
To "clear" the code line, simply delete the line. That will of course render the surrounding if block irrelevant, and ensure that your reduce method simply returns an empty object, so your fetch request is also irrelevant. The final function would be:
JavaScript
const fetchRepos = () => {
    const newData = {};
    console.log(newData);
};

NB: If that's not what you're trying to do, then you need to provide a clearer explanation of your requirement.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Reduce Javascript Pin
Member 1497619910-Mar-21 21:41
MemberMember 1497619910-Mar-21 21:41 
GeneralRe: Reduce Javascript Pin
Richard Deeming10-Mar-21 21:46
mveRichard Deeming10-Mar-21 21:46 
GeneralRe: Reduce Javascript Pin
Member 1497619910-Mar-21 22:04
MemberMember 1497619910-Mar-21 22:04 
GeneralRe: Reduce Javascript Pin
Richard Deeming10-Mar-21 22:18
mveRichard Deeming10-Mar-21 22:18 
GeneralRe: Reduce Javascript Pin
Member 1497619910-Mar-21 23:01
MemberMember 1497619910-Mar-21 23:01 
QuestionHI can someone help me with my responsive gallery project? Pin
Florina Catalina10-Mar-21 4:38
MemberFlorina Catalina10-Mar-21 4:38 
AnswerRe: HI can someone help me with my responsive gallery project? Pin
Richard MacCutchan10-Mar-21 22:23
mveRichard MacCutchan10-Mar-21 22:23 
GeneralRe: HI can someone help me with my responsive gallery project? Pin
Florina Catalina12-Mar-21 6:24
MemberFlorina Catalina12-Mar-21 6:24 
GeneralRe: HI can someone help me with my responsive gallery project? Pin
Richard MacCutchan12-Mar-21 6:42
mveRichard MacCutchan12-Mar-21 6:42 
AnswerRe: HI can someone help me with my responsive gallery project? Pin
NotTodayYo12-Mar-21 7:15
MemberNotTodayYo12-Mar-21 7:15 
AnswerRe: HI can someone help me with my responsive gallery project? Pin
Member 1529865622-Jul-21 21:56
MemberMember 1529865622-Jul-21 21:56 
QuestionHello, i need some help for a project with css and html Pin
Florina Catalina10-Mar-21 4:38
MemberFlorina Catalina10-Mar-21 4:38 
QuestionHelp me remove unused CSS Pin
maithu7029-Mar-21 1:27
Membermaithu7029-Mar-21 1:27 
AnswerRe: Help me remove unused CSS Pin
Richard Deeming9-Mar-21 22:20
mveRichard Deeming9-Mar-21 22:20 
AnswerRe: Help me remove unused CSS Pin
User 1407655214-Jul-21 10:03
MemberUser 1407655214-Jul-21 10:03 
QuestionDeployments Pin
#realJSOP27-Feb-21 4:57
mva#realJSOP27-Feb-21 4:57 
QuestionASP.Net Web API Controller Question Pin
Kevin Marois26-Feb-21 7:47
professionalKevin Marois26-Feb-21 7:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.