Skip to content

Tag: javascript

memoizee – Cached based on arguments

I would like to memoize results of function based on provided arguments. For example: This invocations should be independent and should have standalone cached results. Currently I always receive the result from the first call. I tried used other library than memoizee. With fast-memoize I got expected effect, …

Cannot read property ‘writeHead’ of undefined

I have successfully hosted an local .NET server with the url: http://localhost:65349/. Now I want to change the “localhost” to my IP Address such that the Web is still running,however, the 400 HTTP error received I have download the iisexpress-proxy into my computer by Nodejs, however, why trying …

Discord bot get number of users in all channels

Im not good with javascript but i have been trying to get count number of users in all voice channels. For example: if 2 users in ‘voice channel 1’ and 1 user in ‘voice channel 2’ I want to print number 3 in console which is all users in voice channels. This code print all members(onli…

weekdays with date-Digit number in moment js

I am trying to find WeekdayName with dateDigit in moment js. for example: Wednesday 13 I have found these => moment(date).format(‘dddd’) But is returning me only Wednesday not digit number. So any lead, for answer appreciates. Answer format – dddd DD dddd – Day Name DD – Date